Module: RSpec::JsonMatcher
- Defined in:
- lib/rspec/json_matcher.rb,
lib/rspec/json_matcher/version.rb,
lib/rspec/json_matcher/exact_matcher.rb,
lib/rspec/json_matcher/fuzzy_matcher.rb,
lib/rspec/json_matcher/exact_comparer.rb,
lib/rspec/json_matcher/fuzzy_comparer.rb,
lib/rspec/json_matcher/abstract_matcher.rb,
lib/rspec/json_matcher/abstract_comparer.rb
Defined Under Namespace
Classes: AbstractComparer, AbstractMatcher, ExactComparer, ExactMatcher, FuzzyComparer, FuzzyMatcher
Constant Summary
collapse
- VERSION =
"0.1.6"
Instance Method Summary
collapse
Instance Method Details
#be_json(expected = nil) ⇒ Object
13
14
15
|
# File 'lib/rspec/json_matcher.rb', line 13
def be_json(expected = nil)
ExactMatcher.new(expected)
end
|
#be_json_as(expected) ⇒ Object
17
18
19
|
# File 'lib/rspec/json_matcher.rb', line 17
def be_json_as(expected)
ExactMatcher.new(expected)
end
|
#be_json_including(expected) ⇒ Object
21
22
23
|
# File 'lib/rspec/json_matcher.rb', line 21
def be_json_including(expected)
FuzzyMatcher.new(expected)
end
|