Sha256: d9695dc03bf9ec9493fbe144f1c46a5e6e47778d4dc2726082f36b747d0a589b
Contents?: true
Size: 656 Bytes
Versions: 33
Compression:
Stored size: 656 Bytes
Contents
class ResourceTestCase shared "return an empty response body" do test "should return nil" do assert_equal nil, parsed_response_body end end shared "return an empty list response body" do test "should return []" do assert_equal [], parsed_response_body end end shared "content type header indicates JSON" do test "should have JSON content type" do assert_equal "application/json", last_response.headers["Content-Type"] end end shared "content type header not set" do test "should not have Content-Type set" do assert_equal nil, last_response.headers["Content-Type"] end end end
Version data entries
33 entries across 33 versions & 1 rubygems