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 +1 -1
- data/lib/synthesis/expectation_record.rb +1 -0
- data/test/synthesis/expectation_record_test.rb +6 -0
- metadata +1 -1
data/Rakefile
CHANGED
@@ -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)
|