Skip to content

Commit d0cea93

Browse files
committed
Add test for include with missing value
1 parent 1a1b0b5 commit d0cea93

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

test/integration/requests/request_test.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1119,6 +1119,11 @@ def test_include_parameter_openquoted
11191119
assert_jsonapi_response 400
11201120
end
11211121

1122+
def test_include_value_missing
1123+
get '/api/v2/posts?include=', headers: { 'Accept' => JSONAPI::MEDIA_TYPE }
1124+
assert_jsonapi_response 200
1125+
end
1126+
11221127
def test_getting_different_resources_when_sti
11231128
assert_cacheable_jsonapi_get '/vehicles'
11241129
types = json_response['data'].map{|r| r['type']}.sort

0 commit comments

Comments
 (0)