Class: Smartest::BeNilMatcher
- Inherits:
-
Object
- Object
- Smartest::BeNilMatcher
- Defined in:
- lib/smartest/matchers.rb
Instance Method Summary collapse
Instance Method Details
#failure_message ⇒ Object
68 69 70 |
# File 'lib/smartest/matchers.rb', line 68 def "expected #{@actual.inspect} to be nil" end |
#matches?(actual) ⇒ Boolean
63 64 65 66 |
# File 'lib/smartest/matchers.rb', line 63 def matches?(actual) @actual = actual actual.nil? end |
#negated_failure_message ⇒ Object
72 73 74 |
# File 'lib/smartest/matchers.rb', line 72 def "expected #{@actual.inspect} not to be nil" end |