lib/bacon-expect/expectation.rb in bacon-expect-1.0.2 vs lib/bacon-expect/expectation.rb in bacon-expect-1.0.3

- old
+ new

@@ -10,25 +10,25 @@ @subject = subject @subject_block = subject_block end def to(matcher) - fail(matcher) unless matcher_passes(matcher) + fail(matcher, false) unless matcher_passes(matcher) assert end def not_to(matcher) - fail(matcher) if matcher_passes(matcher) + fail(matcher, true) if matcher_passes(matcher) assert end alias_method :to_not, :not_to def matcher_passes(matcher) matcher.matches?(@subject, &@subject_block) end - def fail(matcher) - raise matcher.fail!(@subject, &@subject_block) + def fail(matcher, negated) + raise matcher.fail!(@subject, negated, &@subject_block) end def assert true.should == true end \ No newline at end of file