Fixes ActionMailer example error

This commit is contained in:
Francesc Esplugas
2010-11-07 22:08:59 +01:00
parent b591989b5f
commit e22ad7ae1d

View File

@@ -492,7 +492,7 @@ class UserMailerTest < ActionMailer::TestCase
user = users(:some_user_in_your_fixtures)
# Send the email, then test that it got queued
email = UserMailer.deliver_welcome_email(user)
email = UserMailer.welcome_email(user).deliver
assert !ActionMailer::Base.deliveries.empty?
# Test the body of the sent email contains what we expect it to