diff options
author | Robert Speicher <rspeicher@gmail.com> | 2017-03-28 00:14:01 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2017-03-28 03:44:09 +0300 |
commit | ca9a79f62026aa63ab44665aa51a8e88de941b01 (patch) | |
tree | 5f98c43b79cdb30c60a75613f0f0e5f457a0e20c /spec/services/labels | |
parent | d4c99f644a2da2aa340aee8bc10c1dcf7c9e0d18 (diff) |
Use `:empty_project` where possible in service specs
Diffstat (limited to 'spec/services/labels')
-rw-r--r-- | spec/services/labels/find_or_create_service_spec.rb | 2 | ||||
-rw-r--r-- | spec/services/labels/transfer_service_spec.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/spec/services/labels/find_or_create_service_spec.rb b/spec/services/labels/find_or_create_service_spec.rb index 7a9b34f9f96..de8f1827cce 100644 --- a/spec/services/labels/find_or_create_service_spec.rb +++ b/spec/services/labels/find_or_create_service_spec.rb @@ -3,7 +3,7 @@ require 'spec_helper' describe Labels::FindOrCreateService, services: true do describe '#execute' do let(:group) { create(:group) } - let(:project) { create(:project, namespace: group) } + let(:project) { create(:empty_project, namespace: group) } let(:params) do { diff --git a/spec/services/labels/transfer_service_spec.rb b/spec/services/labels/transfer_service_spec.rb index 13654a0881c..11d5f1cad5e 100644 --- a/spec/services/labels/transfer_service_spec.rb +++ b/spec/services/labels/transfer_service_spec.rb @@ -6,8 +6,8 @@ describe Labels::TransferService, services: true do let(:group_1) { create(:group) } let(:group_2) { create(:group) } let(:group_3) { create(:group) } - let(:project_1) { create(:project, namespace: group_2) } - let(:project_2) { create(:project, namespace: group_3) } + let(:project_1) { create(:empty_project, namespace: group_2) } + let(:project_2) { create(:empty_project, namespace: group_3) } let(:group_label_1) { create(:group_label, group: group_1, name: 'Group Label 1') } let(:group_label_2) { create(:group_label, group: group_1, name: 'Group Label 2') } |