diff options
author | James Lopez <james@jameslopez.es> | 2016-12-21 13:29:27 +0100 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2016-12-21 13:29:27 +0100 |
commit | 4c3ec579e5660daab23d48bd4b3e21050735f726 (patch) | |
tree | 23722f566de4f61b48eb7436174bf6c37dd011e1 /spec/services/groups | |
parent | fd5062a848d63b89248c384e0171c6f1af833a49 (diff) | |
download | gitlab-ce-4c3ec579e5660daab23d48bd4b3e21050735f726.tar.gz |
added more specs
Diffstat (limited to 'spec/services/groups')
-rw-r--r-- | spec/services/groups/update_service_spec.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/services/groups/update_service_spec.rb b/spec/services/groups/update_service_spec.rb index 8ac5736cbb3..531180e48a1 100644 --- a/spec/services/groups/update_service_spec.rb +++ b/spec/services/groups/update_service_spec.rb @@ -59,8 +59,6 @@ describe Groups::UpdateService, services: true do end it 'returns true' do - puts internal_group.errors.full_messages - expect(service.execute).to eq(true) end @@ -82,6 +80,10 @@ describe Groups::UpdateService, services: true do expect(internal_group.errors.full_messages.first).to eq('Gitlab::UpdatePathError') end + + it "hasn't changed the path" do + expect { service.execute}.not_to change { internal_group.reload.path} + end end end end |