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
101
101
include_directives ,
102
102
find_options )
103
103
104
+ fail JSONAPI ::Exceptions ::RecordNotFound . new ( id ) if resource_set . resource_klasses . empty?
104
105
resource_set . populate! ( serializer , context , find_options )
105
106
106
107
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
25
25
assert_cacheable_jsonapi_get '/api/v2/books?include=book_comments,book_comments.author'
26
26
end
27
27
28
+ def test_get_not_found
29
+ get "/people/2000"
30
+ assert_jsonapi_response 404
31
+ end
32
+
28
33
def test_post_sessions
29
34
session_id = SecureRandom . uuid
30
35
You can’t perform that action at this time.
0 commit comments