aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/lib/action_mailer
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2015-05-09 18:59:59 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2015-05-09 18:59:59 +0900
commit49a59cc6a5e950c56938493da5b23fce77c1cf3f (patch)
treeb85d602b79e058974018e1c9d47c2dfd64c56919 /actionmailer/lib/action_mailer
parent684bbe86cd320549804cb92d4d325e77305b1498 (diff)
downloadrails-49a59cc6a5e950c56938493da5b23fce77c1cf3f.tar.gz
rails-49a59cc6a5e950c56938493da5b23fce77c1cf3f.tar.bz2
rails-49a59cc6a5e950c56938493da5b23fce77c1cf3f.zip
`assert_emails` in block form use the given number as expected value
Diffstat (limited to 'actionmailer/lib/action_mailer')
-rw-r--r--actionmailer/lib/action_mailer/test_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionmailer/lib/action_mailer/test_helper.rb b/actionmailer/lib/action_mailer/test_helper.rb
index 524e6e3af1..4d03a616d2 100644
--- a/actionmailer/lib/action_mailer/test_helper.rb
+++ b/actionmailer/lib/action_mailer/test_helper.rb
@@ -34,7 +34,7 @@ module ActionMailer
original_count = ActionMailer::Base.deliveries.size
yield
new_count = ActionMailer::Base.deliveries.size
- assert_equal original_count + number, new_count, "#{number} emails expected, but #{new_count - original_count} were sent"
+ assert_equal number, new_count - original_count, "#{number} emails expected, but #{new_count - original_count} were sent"
else
assert_equal number, ActionMailer::Base.deliveries.size
end