synthesis 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README +2 -0
- data/Rakefile +1 -1
- data/lib/synthesis/expectation.rb +2 -0
- data/lib/synthesis/report.rb +2 -1
- metadata +2 -2
data/README
CHANGED
@@ -52,6 +52,8 @@ To use with Expectations, redirecting output to a file
|
|
52
52
|
|
53
53
|
Synthesis will currently ignore dynamically generated at runtime methods.
|
54
54
|
|
55
|
+
Reporting the location (filename and line number) of tested/untested expectations doesn't work as intended with the Expectations adapter.
|
56
|
+
|
55
57
|
== Related reading
|
56
58
|
|
57
59
|
* Synthesized Testing: A Primer ( http://nutrun.com/weblog/synthesized-testing-a-primer )
|
data/Rakefile
CHANGED
@@ -45,6 +45,7 @@ module Synthesis
|
|
45
45
|
end
|
46
46
|
|
47
47
|
def eql?(other)
|
48
|
+
return false unless other.is_a?(Synthesis::Expectation::Singleton)
|
48
49
|
@receiver.name == other.receiver.name &&
|
49
50
|
@method == other.method &&
|
50
51
|
args_match?(other)
|
@@ -65,6 +66,7 @@ module Synthesis
|
|
65
66
|
end
|
66
67
|
|
67
68
|
def eql?(other)
|
69
|
+
return false unless other.is_a?(Synthesis::Expectation::Instance)
|
68
70
|
meta_receiver.name == other.meta_receiver.name &&
|
69
71
|
@method == other.method &&
|
70
72
|
args_match?(other)
|
data/lib/synthesis/report.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: synthesis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stuart Caborn, George Malamidis
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-02-
|
12
|
+
date: 2008-02-04 00:00:00 +00:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|