Class: Smartest::BeNilMatcher
- Inherits:
-
Object
- Object
- Smartest::BeNilMatcher
- Defined in:
- lib/smartest/matchers.rb
Instance Method Summary collapse
Instance Method Details
#failure_message ⇒ Object
141 142 143 |
# File 'lib/smartest/matchers.rb', line 141 def "expected #{@actual.inspect} to be nil" end |
#matches?(actual) ⇒ Boolean
136 137 138 139 |
# File 'lib/smartest/matchers.rb', line 136 def matches?(actual) @actual = actual actual.nil? end |
#negated_failure_message ⇒ Object
145 146 147 |
# File 'lib/smartest/matchers.rb', line 145 def "expected #{@actual.inspect} not to be nil" end |