synthesis 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -71,7 +71,7 @@ end
71
71
 
72
72
  gem_spec = Gem::Specification.new do |s|
73
73
  s.name = 'synthesis'
74
- s.version = '0.0.3'
74
+ s.version = '0.0.4'
75
75
  s.platform = Gem::Platform::RUBY
76
76
  s.rubyforge_project = "synthesis"
77
77
  s.summary, s.description = 'A tool for Synthesized Testing'
@@ -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)
@@ -9,7 +9,8 @@ module Synthesis
9
9
  log; log "FAILED."
10
10
  return -1
11
11
  end
12
- log; log "SUCCESS."
12
+ log; log "Verified #{ExpectationRecord.expectations.size} expectations"
13
+ log "SUCCESS."
13
14
  0
14
15
  end
15
16
 
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.3
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-03 00:00:00 +00:00
12
+ date: 2008-02-04 00:00:00 +00:00
13
13
  default_executable:
14
14
  dependencies: []
15
15