Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-09-23 14:45:48 +0300
committerLin Jen-Shin <godfat@godfat.org>2016-09-23 14:45:59 +0300
commit61d650fed72ad15916168cefaf01cdcde888cc59 (patch)
treef769c5c0c2369c42cb84e48c5a6bf7fb3458ba28 /spec/services/ci
parentda0550c2214ba46b624361190a2ff5c5f3e887c6 (diff)
Fix the other missing commit
Diffstat (limited to 'spec/services/ci')
-rw-r--r--spec/services/ci/send_pipeline_notification_service_spec.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/services/ci/send_pipeline_notification_service_spec.rb b/spec/services/ci/send_pipeline_notification_service_spec.rb
index cb53ba8b051..aa5c14e10f9 100644
--- a/spec/services/ci/send_pipeline_notification_service_spec.rb
+++ b/spec/services/ci/send_pipeline_notification_service_spec.rb
@@ -1,8 +1,12 @@
require 'spec_helper'
describe Ci::SendPipelineNotificationService, services: true do
+ let(:pipeline) do
+ create(:ci_pipeline, project: project, sha: project.commit('master').sha)
+ end
+
+ let(:project) { create(:project) }
let(:user) { create(:user) }
- let(:pipeline) { create(:ci_pipeline, user: user, status: status) }
subject{ described_class.new(pipeline) }
describe '#execute' do