lib/fix/expectation_low.rb in fix-0.4.0 vs lib/fix/expectation_low.rb in fix-0.5.0

- old
+ new

@@ -5,23 +5,21 @@ def evaluate front_object subject = Subject.new front_object, *@args got = nil Thread.new { - report = expect { got = subject.actual }. - public_send target, @matcher => @expected + report = expect { got = subject.actual }.public_send target, @definition + data = presenter report, got, subject - data = presenter report, got, subject - - Hash[ data.to_a + meta(subject).to_a ] + Hash[ data.to_a + meta(subject).to_a ].merge object: front_object }.value end private - def pass? result, subject + def pass result, subject if subject.implemented? - exception(result).nil? + super else true end end