Method: Webhookdb::SpecHelpers::Service.have_json_body

Defined in:
lib/webhookdb/spec_helpers/service.rb

.have_json_body(expected_type = nil) ⇒ Object

Create a new matcher that will expect the response to have a JSON body of the expected_type. If expected_type is omitted, any JSON body will be sufficient for a match.



393
394
395
# File 'lib/webhookdb/spec_helpers/service.rb', line 393

module_function def have_json_body(expected_type=nil)
  return HaveJSONBodyMatcher.new(expected_type)
end