synthesis 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -58,7 +58,7 @@ end
58
58
 
59
59
  gem_spec = Gem::Specification.new do |s|
60
60
  s.name = 'synthesis'
61
- s.version = '0.1.1'
61
+ s.version = '0.1.2'
62
62
  s.platform = Gem::Platform::RUBY
63
63
  s.rubyforge_project = "synthesis"
64
64
  s.summary, s.description = 'A tool for Synthesized Testing'
@@ -74,6 +74,7 @@ module Synthesis
74
74
  def ignore?(obj)
75
75
  ignored.include?(obj.class) ||
76
76
  (obj.is_a?(Class) && ignored.include?(obj)) ||
77
+ (obj.is_a?(Module) && ignored.include?(obj)) ||
77
78
  obj.is_a?(MOCK_OBJECT)
78
79
  end
79
80
 
@@ -47,6 +47,12 @@ module Synthesis
47
47
  assert(ExpectationRecord.expectations.empty?)
48
48
  end
49
49
 
50
+ def test_does_not_add_expectation_for_ignored_module
51
+ ExpectationRecord.ignore(Enumerable)
52
+ ExpectationRecord.add_expectation(Enumerable, :foo, :track)
53
+ assert(ExpectationRecord.expectations.empty?)
54
+ end
55
+
50
56
  def test_returns_added_expectation_on_add
51
57
  expected = Expectation.new(Hash, :foo, :track, [], [:return_val])
52
58
  actual = ExpectationRecord.add_expectation(Hash, :foo, :track)
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.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stuart Caborn, George Malamidis