Class: BeFalseMatcher
- Defined in:
- lib/extensions/rhospec/rhospec.rb,
lib/extensions/mspec/mspec/matchers/be_false.rb
Instance Method Summary collapse
Instance Method Details
#failure_message ⇒ Object
373 374 375 |
# File 'lib/extensions/rhospec/rhospec.rb', line 373 def ["Expected #{@actual.inspect}", "to be false"] end |
#matches?(actual) ⇒ Boolean
368 369 370 371 |
# File 'lib/extensions/rhospec/rhospec.rb', line 368 def matches?(actual) @actual = actual @actual == false end |
#negative_failure_message ⇒ Object
377 378 379 |
# File 'lib/extensions/rhospec/rhospec.rb', line 377 def ["Expected #{@actual.inspect}", "not to be false"] end |