Class: BeNilMatcher
- Defined in:
- lib/extensions/rhospec/rhospec.rb,
lib/extensions/mspec/mspec/matchers/be_nil.rb
Instance Method Summary collapse
Instance Method Details
#failure_message ⇒ Object
282 283 284 |
# File 'lib/extensions/rhospec/rhospec.rb', line 282 def ["Expected #{@actual.inspect}", "to be nil"] end |
#matches?(actual) ⇒ Boolean
277 278 279 280 |
# File 'lib/extensions/rhospec/rhospec.rb', line 277 def matches?(actual) @actual = actual @actual.nil? end |
#negative_failure_message ⇒ Object
286 287 288 |
# File 'lib/extensions/rhospec/rhospec.rb', line 286 def ["Expected #{@actual.inspect}", "not to be nil"] end |