Class: MotionSpec::Matcher::BeFalse
- Defined in:
- lib/motion-spec/matcher/be_false.rb
Instance Method Summary collapse
Instance Method Details
#fail!(subject, negated) ⇒ Object
9 10 11 12 |
# File 'lib/motion-spec/matcher/be_false.rb', line 9 def fail!(subject, negated) = FailMessageRenderer.(negated, subject) raise FailedExpectation.new() end |
#matches?(value) ⇒ Boolean
5 6 7 |
# File 'lib/motion-spec/matcher/be_false.rb', line 5 def matches?(value) !value end |