synthesis 0.1.1 → 0.1.2
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/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)
|