summaryrefslogtreecommitdiff
path: root/spec/services
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2017-08-28 18:01:59 +0900
committerShinya Maeda <shinya@gitlab.com>2017-08-29 01:15:21 +0900
commit1d7a1e9ce7c8ba44c6f26af38d9bf0f34e92e476 (patch)
tree4f9eade12f762252ee5d8fdfa7b36f556b6fd917 /spec/services
parent2b3b5c3bcefbff82208f2797e6533cf7e179931d (diff)
downloadgitlab-ce-1d7a1e9ce7c8ba44c6f26af38d9bf0f34e92e476.tar.gz
Fix spec
Diffstat (limited to 'spec/services')
-rw-r--r--spec/services/ci/create_pipeline_service_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/services/ci/create_pipeline_service_spec.rb b/spec/services/ci/create_pipeline_service_spec.rb
index fdd0cea4f3b..ab3c8a34783 100644
--- a/spec/services/ci/create_pipeline_service_spec.rb
+++ b/spec/services/ci/create_pipeline_service_spec.rb
@@ -413,7 +413,7 @@ describe Ci::CreatePipelineService do
end
context 'when trigger belongs to a developer' do
- let(:user) {}
+ let(:user) { trigger_request.trigger.owner }
let(:trigger_request) do
create(:ci_trigger_request).tap do |request|
@@ -431,7 +431,7 @@ describe Ci::CreatePipelineService do
end
context 'when trigger belongs to a master' do
- let(:user) {}
+ let(:user) { trigger_request.trigger.owner }
let(:trigger_request) do
create(:ci_trigger_request).tap do |request|
@@ -441,7 +441,7 @@ describe Ci::CreatePipelineService do
end
end
- it 'does not create a pipeline' do
+ it 'creates a pipeline' do
expect(execute_service(trigger_request: trigger_request))
.to be_persisted
expect(Ci::Pipeline.count).to eq(1)