Class: Smartest::BeNilMatcher
- Inherits:
-
Object
- Object
- Smartest::BeNilMatcher
- Defined in:
- lib/smartest/matchers.rb
Instance Method Summary collapse
- #description ⇒ Object
- #failure_message ⇒ Object
- #matches?(actual) ⇒ Boolean
- #negated_failure_message ⇒ Object
Instance Method Details
#description ⇒ Object
220 221 222 |
# File 'lib/smartest/matchers.rb', line 220 def description "be nil" end |
#failure_message ⇒ Object
212 213 214 |
# File 'lib/smartest/matchers.rb', line 212 def "expected #{@actual.inspect} to be nil" end |
#matches?(actual) ⇒ Boolean
207 208 209 210 |
# File 'lib/smartest/matchers.rb', line 207 def matches?(actual) @actual = actual actual.nil? end |
#negated_failure_message ⇒ Object
216 217 218 |
# File 'lib/smartest/matchers.rb', line 216 def "expected #{@actual.inspect} not to be nil" end |