Skip to content
Browse files

Fixes ActionMailer example error

  • Loading branch information...
1 parent b591989 commit e22ad7ae1da0e2a78aaa33c33b272a230d9e8d28 Francesc Esplugas committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/guides/source/action_mailer_basics.textile
View
2 railties/guides/source/action_mailer_basics.textile
@@ -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

0 comments on commit e22ad7a

Please sign in to comment.
Something went wrong with that request. Please try again.