Class: Crspec::Matchers::BeTruthyMatcher
- Inherits:
-
BaseMatcher
- Object
- BaseMatcher
- Crspec::Matchers::BeTruthyMatcher
- Defined in:
- lib/crspec/matchers.rb
Instance Attribute Summary
Attributes inherited from BaseMatcher
Instance Method Summary collapse
Methods inherited from BaseMatcher
#and, #failure_message_when_negated, #initialize, #or
Constructor Details
This class inherits a constructor from Crspec::Matchers::BaseMatcher
Instance Method Details
#failure_message ⇒ Object
124 125 126 |
# File 'lib/crspec/matchers.rb', line 124 def "Expected #{@actual.inspect} to be truthy" end |
#matches?(actual) ⇒ Boolean
119 120 121 122 |
# File 'lib/crspec/matchers.rb', line 119 def matches?(actual) @actual = actual !!@actual end |