Skip to content

Commit

Permalink
Add test for include with missing value
Browse files Browse the repository at this point in the history
  • Loading branch information
lgebhardt committed Jan 9, 2019
1 parent 1a1b0b5 commit d0cea93
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/integration/requests/request_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1119,6 +1119,11 @@ def test_include_parameter_openquoted
assert_jsonapi_response 400
end

def test_include_value_missing
get '/api/v2/posts?include=', headers: { 'Accept' => JSONAPI::MEDIA_TYPE }
assert_jsonapi_response 200
end

def test_getting_different_resources_when_sti
assert_cacheable_jsonapi_get '/vehicles'
types = json_response['data'].map{|r| r['type']}.sort
Expand Down

0 comments on commit d0cea93

Please sign in to comment.