Commit 612820b2 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Fix test by having a real commit

parent beb47c25
......@@ -525,10 +525,18 @@ describe Ci::Pipeline, models: true do
end
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
reset_delivered_emails!
pipeline.update(user: create(:user))
pipeline.enqueue
pipeline.run
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment