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