Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2017-06-23 18:11:31 +0300
committerJames Lopez <james@jameslopez.es>2017-06-23 18:11:31 +0300
commitb33c638483d6b87ba71a329275ff12e5eb865d72 (patch)
treeaf7f0c3caac54bad865e651654772d575d9d0e4b /spec/services
parent8f2adb8084c15026115aed39a06e9af04c5e7957 (diff)
update code based on feedback
Diffstat (limited to 'spec/services')
-rw-r--r--spec/services/users/update_service_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/services/users/update_service_spec.rb b/spec/services/users/update_service_spec.rb
index 6c33a232cb0..0b2f840c462 100644
--- a/spec/services/users/update_service_spec.rb
+++ b/spec/services/users/update_service_spec.rb
@@ -7,7 +7,7 @@ describe Users::UpdateService, services: true do
it 'updates the name' do
result = update_user(user, name: 'New Name')
- expect(result).to eq({ status: :success })
+ expect(result).to eq(status: :success)
expect(user.name).to eq('New Name')
end
@@ -30,9 +30,9 @@ describe Users::UpdateService, services: true do
expect(user.name).to eq('New Name')
end
- it 'returns an error result when record cannot be updated' do
+ it 'raises an error when record cannot be updated' do
expect do
- update_user(user, { email: 'invalid' })
+ update_user(user, email: 'invalid')
end.to raise_error(ActiveRecord::RecordInvalid)
end