diff options
author | Kamil Trzciński <ayufan@ayufan.eu> | 2017-08-28 11:09:01 +0000 |
---|---|---|
committer | Kamil Trzciński <ayufan@ayufan.eu> | 2017-08-28 11:09:01 +0000 |
commit | 1498baf7e94a06ed2048d571a6cdec61771513c2 (patch) | |
tree | 33b8bceb1294bfab34812acf37bca378c6f53b5d /spec/services | |
parent | 073811074bf15742a86572b933b0e3ad0f06107b (diff) | |
parent | ed4f5b97d38ced5cac47d94064ef713b72a8c88d (diff) | |
download | gitlab-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.rb | 3 |
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)) |