Fix the other missing commit

This commit is contained in:
Lin Jen-Shin 2016-09-23 19:45:48 +08:00
parent da0550c221
commit 61d650fed7

View file

@ -1,8 +1,12 @@
require 'spec_helper' require 'spec_helper'
describe Ci::SendPipelineNotificationService, services: true do 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(:user) { create(:user) }
let(:pipeline) { create(:ci_pipeline, user: user, status: status) }
subject{ described_class.new(pipeline) } subject{ described_class.new(pipeline) }
describe '#execute' do describe '#execute' do