Class: RSpecApi::Matchers::Json::Matcher
- Inherits:
-
Response::Matcher
- Object
- Response::Matcher
- RSpecApi::Matchers::Json::Matcher
- Defined in:
- lib/rspec-api/matchers/json/matcher.rb
Direct Known Subclasses
Attributes::Matcher, Collection::Matcher, RSpecApi::Matchers::Jsonp::Matcher
Instance Attribute Summary
Attributes inherited from Response::Matcher
Instance Method Summary collapse
- #description ⇒ Object
- #matches?(response) ⇒ Boolean (also: #==)
Methods inherited from Response::Matcher
#failure_message_for_should, #failure_message_for_should_not
Instance Method Details
#description ⇒ Object
14 15 16 |
# File 'lib/rspec-api/matchers/json/matcher.rb', line 14 def description %Q(be valid JSON) end |
#matches?(response) ⇒ Boolean Also known as: ==
9 10 11 |
# File 'lib/rspec-api/matchers/json/matcher.rb', line 9 def matches?(response) super && json end |