Permalink
Browse files

Fixes ActionMailer example error

  • Loading branch information...
1 parent 205b240 commit 45c3abadfa1e832cf2141752736e72ca8a83f23e Francesc Esplugas committed with fxn Nov 7, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/guides/source/action_mailer_basics.textile
@@ -462,7 +462,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 45c3aba

Please sign in to comment.