We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b4fb3c commit 43ed04aCopy full SHA for 43ed04a
2 files changed
spec/errors_spec.rb
@@ -31,6 +31,7 @@
31
32
it do
33
expect(response).to have_http_status(:unprocessable_entity)
34
+ expect(response.media_type).to eq("application/vnd.api+json")
35
expect(response_json['errors'].size).to eq(1)
36
expect(response_json['errors'][0]['status']).to eq('422')
37
expect(response_json['errors'][0]['title'])
spec/fetching_spec.rb
@@ -25,6 +25,7 @@
25
26
expect(response).to have_http_status(:ok)
27
expect(response_json['data'].size).to eq(users.size)
28
29
30
response_json['data'].each do |item|
user = users.detect { |u| u.id == item['id'].to_i }
0 commit comments