diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2016-09-23 14:45:48 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2016-09-23 14:45:59 +0300 |
commit | 61d650fed72ad15916168cefaf01cdcde888cc59 (patch) | |
tree | f769c5c0c2369c42cb84e48c5a6bf7fb3458ba28 /spec/services | |
parent | da0550c2214ba46b624361190a2ff5c5f3e887c6 (diff) |
Fix the other missing commit
Diffstat (limited to 'spec/services')
-rw-r--r-- | spec/services/ci/send_pipeline_notification_service_spec.rb | 6 |
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 |