Prefer methods from EmailHelpers, feedback:

https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6342/diffs#note_15434869
This commit is contained in:
Lin Jen-Shin 2016-09-19 13:47:11 +08:00
parent bac500fdeb
commit d39b1959d8

View file

@ -526,7 +526,7 @@ describe Ci::Pipeline, models: true do
describe 'notifications when pipeline success or failed' do
before do
ActionMailer::Base.deliveries.clear
reset_delivered_emails!
pipeline.update(user: create(:user))
pipeline.enqueue