Class: RSpec::JsonMatcher::ExactMatcher
- Inherits:
-
AbstractMatcher
- Object
- AbstractMatcher
- RSpec::JsonMatcher::ExactMatcher
- Defined in:
- lib/rspec/json_matcher/exact_matcher.rb
Instance Attribute Summary
Attributes inherited from AbstractMatcher
Instance Method Summary collapse
Methods inherited from AbstractMatcher
#description, #failure_message, #initialize, #matches?, #negative_failure_message
Constructor Details
This class inherits a constructor from RSpec::JsonMatcher::AbstractMatcher
Instance Method Details
#compare(&reason) ⇒ Object
4 5 6 |
# File 'lib/rspec/json_matcher/exact_matcher.rb', line 4 def compare(&reason) ExactComparer.compare(parsed, expected, &reason) end |