Skip to content

Commit 2a7fab6

Browse files
committed
Update gem version
1 parent fb99280 commit 2a7fab6

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/jsonapi/utils/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module JSONAPI
22
module Utils
3-
VERSION = '0.4.3'
3+
VERSION = '0.4.4'
44
end
55
end

spec/controllers/users_controller_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,10 +262,10 @@
262262

263263
context 'when validation fails' do
264264
it 'render a 422 response' do
265-
user_params[:data][:attributes].merge!(first_name: '')
265+
user_params[:data][:attributes].merge!(first_name: nil)
266266
expect { post :create, user_params }.to change(User, :count).by(0)
267267
expect(response).to have_http_status :unprocessable_entity
268-
expect(error['title']).to eq('Impossible to change this User')
268+
expect(error['title']).to eq('Can\'t change this User')
269269
expect(error['code']).to eq(125)
270270
end
271271
end

spec/support/exceptions.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def errors
1010
[JSONAPI::Error.new(
1111
code: 125,
1212
status: :unprocessable_entity,
13-
title: "Impossible to change this #{@object.class.name}",
13+
title: "Can't change this #{@object.class.name}",
1414
detail: @object.errors)]
1515
end
1616
end

0 commit comments

Comments
 (0)