Class: Crspec::Matchers::BeFalsyMatcher
- Inherits:
-
BaseMatcher
- Object
- BaseMatcher
- Crspec::Matchers::BeFalsyMatcher
- Defined in:
- lib/crspec/matchers.rb
Instance Attribute Summary
Attributes inherited from BaseMatcher
Instance Method Summary collapse
Methods inherited from BaseMatcher
#failure_message_when_negated, #initialize
Constructor Details
This class inherits a constructor from Crspec::Matchers::BaseMatcher
Instance Method Details
#failure_message ⇒ Object
85 86 87 |
# File 'lib/crspec/matchers.rb', line 85 def "Expected #{@actual.inspect} to be falsy" end |
#matches?(actual) ⇒ Boolean
80 81 82 83 |
# File 'lib/crspec/matchers.rb', line 80 def matches?(actual) @actual = actual !@actual end |