Skip to content

Commit 721a635

Browse files
committed
Add a failing test
1 parent cdb933d commit 721a635

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

test/integration/requests/request_test.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,14 @@ def test_get_camelized_route_and_links
9393
JSONAPI.configuration = original_config
9494
end
9595

96+
def test_get_accepting_multiple_content_types
97+
get '/posts', headers:
98+
{
99+
'Accept': "application/json, #{JSONAPI::MEDIA_TYPE}, */*"
100+
}
101+
assert_equal 200, status
102+
end
103+
96104
def test_put_single_without_content_type
97105
put '/posts/3', params:
98106
{

0 commit comments

Comments
 (0)