summaryrefslogtreecommitdiff
path: root/spec/services
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2017-08-28 11:09:01 +0000
committerKamil Trzciński <ayufan@ayufan.eu>2017-08-28 11:09:01 +0000
commit1498baf7e94a06ed2048d571a6cdec61771513c2 (patch)
tree33b8bceb1294bfab34812acf37bca378c6f53b5d /spec/services
parent073811074bf15742a86572b933b0e3ad0f06107b (diff)
parented4f5b97d38ced5cac47d94064ef713b72a8c88d (diff)
downloadgitlab-ce-1498baf7e94a06ed2048d571a6cdec61771513c2.tar.gz
Merge branch '35642-add-owner-to-triggers-factory' into 'master'
Make sure we have an owner for triggers Closes #35642 See merge request !13799
Diffstat (limited to 'spec/services')
-rw-r--r--spec/services/ci/create_pipeline_service_spec.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/services/ci/create_pipeline_service_spec.rb b/spec/services/ci/create_pipeline_service_spec.rb
index 8465a6f99bd..fdd0cea4f3b 100644
--- a/spec/services/ci/create_pipeline_service_spec.rb
+++ b/spec/services/ci/create_pipeline_service_spec.rb
@@ -470,7 +470,8 @@ describe Ci::CreatePipelineService do
context 'when ref is not protected' do
context 'when trigger belongs to no one' do
let(:user) {}
- let(:trigger_request) { create(:ci_trigger_request) }
+ let(:trigger) { create(:ci_trigger, owner: nil) }
+ let(:trigger_request) { create(:ci_trigger_request, trigger: trigger) }
it 'creates a pipeline' do
expect(execute_service(trigger_request: trigger_request))