diff options
author | Robert Speicher <rspeicher@gmail.com> | 2017-03-27 17:14:01 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2017-03-27 20:44:09 -0400 |
commit | ca9a79f62026aa63ab44665aa51a8e88de941b01 (patch) | |
tree | 5f98c43b79cdb30c60a75613f0f0e5f457a0e20c /spec/services/groups | |
parent | d4c99f644a2da2aa340aee8bc10c1dcf7c9e0d18 (diff) | |
download | gitlab-ce-ca9a79f62026aa63ab44665aa51a8e88de941b01.tar.gz |
Use `:empty_project` where possible in service specs
Diffstat (limited to 'spec/services/groups')
-rw-r--r-- | spec/services/groups/destroy_service_spec.rb | 2 | ||||
-rw-r--r-- | spec/services/groups/update_service_spec.rb | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/spec/services/groups/destroy_service_spec.rb b/spec/services/groups/destroy_service_spec.rb index 98c560ffb26..2ee11fc8b4c 100644 --- a/spec/services/groups/destroy_service_spec.rb +++ b/spec/services/groups/destroy_service_spec.rb @@ -6,7 +6,7 @@ describe Groups::DestroyService, services: true do let!(:user) { create(:user) } let!(:group) { create(:group) } let!(:nested_group) { create(:group, parent: group) } - let!(:project) { create(:project, namespace: group) } + let!(:project) { create(:empty_project, namespace: group) } let!(:gitlab_shell) { Gitlab::Shell.new } let!(:remove_path) { group.path + "+#{group.id}+deleted" } diff --git a/spec/services/groups/update_service_spec.rb b/spec/services/groups/update_service_spec.rb index 7c0fccb9d41..91ec224d1c4 100644 --- a/spec/services/groups/update_service_spec.rb +++ b/spec/services/groups/update_service_spec.rb @@ -13,7 +13,7 @@ describe Groups::UpdateService, services: true do before do public_group.add_user(user, Gitlab::Access::MASTER) - create(:project, :public, group: public_group) + create(:empty_project, :public, group: public_group) end it "does not change permission level" do @@ -27,7 +27,7 @@ describe Groups::UpdateService, services: true do before do internal_group.add_user(user, Gitlab::Access::MASTER) - create(:project, :internal, group: internal_group) + create(:empty_project, :internal, group: internal_group) end it "does not change permission level" do @@ -55,7 +55,7 @@ describe Groups::UpdateService, services: true do before do internal_group.add_user(user, Gitlab::Access::MASTER) - create(:project, :internal, group: internal_group) + create(:empty_project, :internal, group: internal_group) end it 'returns true' do |