We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 870a7f0 commit 4f7d4b7Copy full SHA for 4f7d4b7
spec/errors_spec.rb
@@ -56,8 +56,13 @@
56
.to eq(Rack::Utils::HTTP_STATUS_CODES[422])
57
expect(response_json['errors'][0]['source'])
58
.to eq('pointer' => '/data/relationships/user')
59
- expect(response_json['errors'][0]['detail'])
60
- .to eq('User can\'t be blank')
+ if Rails::VERSION::MAJOR >= 6 && Rails::VERSION::MINOR >= 1
+ expect(response_json['errors'][0]['detail'])
61
+ .to eq('User must exist')
62
+ else
63
64
+ .to eq('User can\'t be blank')
65
+ end
66
end
67
68
context 'required by validations' do
0 commit comments