Merge pull request #5013 from LeoMcA/alternate-emails-phase-1.5

FIX: add additional email to tests and clean up resulting mess
This commit is contained in:
Guo Xiang Tan
2017-08-16 16:19:28 +09:00
committed by GitHub
7 changed files with 18 additions and 7 deletions

View File

@@ -53,10 +53,10 @@ describe UserDestroyer do
destroy
end
it "adds email to block list if block_email is true" do
it "adds emails to block list if block_email is true" do
expect {
UserDestroyer.new(@admin).destroy(@user, destroy_opts.merge(block_email: true))
}.to change { ScreenedEmail.count }.by(1)
}.to change { ScreenedEmail.count }.by(2)
end
end