Fix test by having a real commit

This commit is contained in:
Lin Jen-Shin 2016-09-26 19:04:02 +08:00
parent beb47c257a
commit 612820b296

View file

@ -525,10 +525,18 @@ describe Ci::Pipeline, models: true do
end end
describe 'notifications when pipeline success or failed' do describe 'notifications when pipeline success or failed' do
let(:project) { create(:project) }
let(:pipeline) do
create(:ci_pipeline,
project: project,
sha: project.commit('master').sha,
user: create(:user))
end
before do before do
reset_delivered_emails! reset_delivered_emails!
pipeline.update(user: create(:user))
pipeline.enqueue pipeline.enqueue
pipeline.run pipeline.run
end end