Skip to content

Commit bf2e059

Browse files
committed
Update rest of tests to include JSONAPI::MEDIA_TYPE in Accept header
1 parent 5f39944 commit bf2e059

4 files changed

Lines changed: 180 additions & 87 deletions

File tree

test/integration/requests/namespaced_model_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ def setup
66
end
77

88
def test_get_flat_posts
9-
get '/flat_posts'
9+
get '/flat_posts', headers: { 'Accept' => JSONAPI::MEDIA_TYPE }
1010
assert_equal 200, status
1111
assert_equal "flat_posts", json_response["data"].first["type"]
1212
end

0 commit comments

Comments
 (0)