Commit 626c73d5 authored by Sean McGivern's avatar Sean McGivern

Clear, don't reassign, emails in test

parent 948ebb80
require 'spec_helper' require 'spec_helper'
describe AdminEmailsWorker do describe AdminEmailsWorker do
include EmailHelpers
context "recipients" do context "recipients" do
let(:group) { create :group } let(:group) { create :group }
let(:project) { create :project } let(:project) { create :project }
...@@ -18,7 +20,7 @@ describe AdminEmailsWorker do ...@@ -18,7 +20,7 @@ describe AdminEmailsWorker do
blocked_user = create(:user, state: :blocked) blocked_user = create(:user, state: :blocked)
group.add_user(blocked_user, Gitlab::Access::DEVELOPER) group.add_user(blocked_user, Gitlab::Access::DEVELOPER)
project.add_user(blocked_user, Gitlab::Access::DEVELOPER) project.add_user(blocked_user, Gitlab::Access::DEVELOPER)
ActionMailer::Base.deliveries = [] reset_delivered_emails!
end end
context "sending emails to members of a group only" do context "sending emails to members of a group only" do
......
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