lib/bacon-expect/matchers/be_nil.rb in bacon-expect-1.0.2 vs lib/bacon-expect/matchers/be_nil.rb in bacon-expect-1.0.3
- old
+ new
@@ -2,10 +2,10 @@
class BeNil
def matches?(value)
value == nil
end
- def fail!(subject)
- raise FailedExpectation.new("#{subject} expected to be nil but wasn't")
+ def fail!(subject, negated)
+ raise FailedExpectation.new(FailMessageRenderer.message_for_be_nil(negated, subject))
end
end
end; end
\ No newline at end of file