Class: BaconExpect::Matcher::BeNil
- Inherits:
-
Object
- Object
- BaconExpect::Matcher::BeNil
- Defined in:
- lib/bacon-expect/matchers/be_nil.rb
Instance Method Summary collapse
Instance Method Details
#fail!(subject, negated) ⇒ Object
7 8 9 |
# File 'lib/bacon-expect/matchers/be_nil.rb', line 7 def fail!(subject, negated) raise FailedExpectation.new(FailMessageRenderer.(negated, subject)) end |
#matches?(value) ⇒ Boolean
3 4 5 |
# File 'lib/bacon-expect/matchers/be_nil.rb', line 3 def matches?(value) value == nil end |