Fix test by having a real commit
This commit is contained in:
parent
beb47c257a
commit
612820b296
1 changed files with 9 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue