Sha256: ff0bd23fde3a7883bae4f920cef2212e6902632bfe6ce4562a7d2ad1642b4c46
Contents?: true
Size: 445 Bytes
Versions: 6
Compression:
Stored size: 445 Bytes
Contents
module APIMatchers module Headers class BeJSON < Base def expected_content_type 'application/json; charset=utf-8' end def failure_message_for_should %Q{expected a JSON response with '#{expected_content_type}'. Got: '#{content_type_response}'.} end def failure_message_for_should_not %Q{expected to not be a JSON response. Got: '#{expected_content_type}'.} end end end end
Version data entries
6 entries across 6 versions & 1 rubygems