diff options
author | Robert Speicher <rspeicher@gmail.com> | 2017-01-26 17:44:58 -0500 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2017-01-26 17:44:59 -0500 |
commit | fcb37542e746d69f20094e2918e498564bbcd863 (patch) | |
tree | f275f062ac4df997a54f5cbbefa4b4104eb7e6ad /spec/models/hooks | |
parent | f27721e842b608f4a63bd0bc59ce77175ae530ca (diff) | |
download | gitlab-ce-fcb37542e746d69f20094e2918e498564bbcd863.tar.gz |
Use `:empty_project` where possible in model specsrs-empty_project-models
Diffstat (limited to 'spec/models/hooks')
-rw-r--r-- | spec/models/hooks/system_hook_spec.rb | 2 | ||||
-rw-r--r-- | spec/models/hooks/web_hook_spec.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/hooks/system_hook_spec.rb b/spec/models/hooks/system_hook_spec.rb index ad2b710041a..e8caad00c44 100644 --- a/spec/models/hooks/system_hook_spec.rb +++ b/spec/models/hooks/system_hook_spec.rb @@ -4,7 +4,7 @@ describe SystemHook, models: true do describe "execute" do let(:system_hook) { create(:system_hook) } let(:user) { create(:user) } - let(:project) { create(:project, namespace: user.namespace) } + let(:project) { create(:empty_project, namespace: user.namespace) } let(:group) { create(:group) } before do diff --git a/spec/models/hooks/web_hook_spec.rb b/spec/models/hooks/web_hook_spec.rb index e52b9d75cef..9d4db1bfb52 100644 --- a/spec/models/hooks/web_hook_spec.rb +++ b/spec/models/hooks/web_hook_spec.rb @@ -25,7 +25,7 @@ describe WebHook, models: true do end describe "execute" do - let(:project) { create(:project) } + let(:project) { create(:empty_project) } let(:project_hook) { create(:project_hook) } before(:each) do |