Class: Crspec::Matchers::CompoundOrMatcher
- Inherits:
-
CompoundAndMatcher
- Object
- CompoundAndMatcher
- Crspec::Matchers::CompoundOrMatcher
- Defined in:
- lib/crspec/matchers.rb
Instance Method Summary collapse
Methods inherited from CompoundAndMatcher
#and, #failure_message_when_negated, #initialize, #or
Constructor Details
This class inherits a constructor from Crspec::Matchers::CompoundAndMatcher
Instance Method Details
#failure_message ⇒ Object
66 67 68 |
# File 'lib/crspec/matchers.rb', line 66 def "#{@first.}\n...or:\n#{@second.}" end |
#matches?(actual) ⇒ Boolean
62 63 64 |
# File 'lib/crspec/matchers.rb', line 62 def matches?(actual) @first.matches?(actual) || @second.matches?(actual) end |