diff options
author | Douwe Maan <douwe@selenight.nl> | 2016-03-21 01:26:58 +0300 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2016-03-21 01:26:58 +0300 |
commit | 45e8650c4f987f0a25d829bf8ac189b023f1eaa3 (patch) | |
tree | d419758f13c209b876ba41d1740ee6e6fc1c0fef /spec/services/groups | |
parent | 19aa20d528aca670fd22954e08bf05f2f7a8fe32 (diff) |
Fix specs
Diffstat (limited to 'spec/services/groups')
-rw-r--r-- | spec/services/groups/update_service_spec.rb | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/spec/services/groups/update_service_spec.rb b/spec/services/groups/update_service_spec.rb index 7732482cdaa..9c2331144a0 100644 --- a/spec/services/groups/update_service_spec.rb +++ b/spec/services/groups/update_service_spec.rb @@ -16,8 +16,9 @@ describe Groups::UpdateService, services: true do create(:project, :public, group: public_group) end - it "cant downgrade permission level" do - expect(public_group.errors.count).to eq(2) + it "does not change permission level" do + service.execute + expect(public_group.errors.count).to eq(1) end end @@ -29,8 +30,9 @@ describe Groups::UpdateService, services: true do create(:project, :internal, group: internal_group) end - it "cant downgrade permission level" do - expect(internal_group.errors.count).to eq(2) + it "does not change permission level" do + service.execute + expect(internal_group.errors.count).to eq(1) end end end @@ -43,6 +45,7 @@ describe Groups::UpdateService, services: true do end it "does not change permission level" do + service.execute expect(internal_group.errors.count).to eq(1) end end |