Class: RSpec::Matchers::BuiltIn::Match
- Inherits:
-
BaseMatcher
- Object
- BaseMatcher
- RSpec::Matchers::BuiltIn::Match
- Defined in:
- lib/rspec/matchers/built_in/match.rb
Constant Summary
Constant Summary
Constants inherited from BaseMatcher
Instance Attribute Summary
Attributes inherited from BaseMatcher
#actual, #expected, #rescued_exception
Instance Method Summary (collapse)
Methods inherited from BaseMatcher
#==, #description, #failure_message_for_should, #failure_message_for_should_not, #initialize, #match_unless_raises, #matches?
Methods included from Pretty
#_pretty_print, #expected_to_sentence, #name, #name_to_sentence, #split_words, #to_sentence, #to_word, #underscore
Constructor Details
This class inherits a constructor from RSpec::Matchers::BuiltIn::BaseMatcher
Instance Method Details
- (Boolean) diffable?
10 11 12 |
# File 'lib/rspec/matchers/built_in/match.rb', line 10 def diffable? true end |
- (Object) match(expected, actual)
6 7 8 |
# File 'lib/rspec/matchers/built_in/match.rb', line 6 def match(expected, actual) actual.match expected end |