File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
test/integration/requests Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -101,6 +101,7 @@ def show
101101 include_directives ,
102102 find_options )
103103
104+ fail JSONAPI ::Exceptions ::RecordNotFound . new ( id ) if resource_set . resource_klasses . empty?
104105 resource_set . populate! ( serializer , context , find_options )
105106
106107 return JSONAPI ::ResourceSetOperationResult . new ( :ok , resource_set , result_options )
Original file line number Diff line number Diff line change @@ -25,6 +25,11 @@ def test_large_get
2525 assert_cacheable_jsonapi_get '/api/v2/books?include=book_comments,book_comments.author'
2626 end
2727
28+ def test_get_not_found
29+ get "/people/2000"
30+ assert_jsonapi_response 404
31+ end
32+
2833 def test_post_sessions
2934 session_id = SecureRandom . uuid
3035
You can’t perform that action at this time.
0 commit comments