Saturday, October 13, 2007

Testing Emails in Rails 2.0

There is a new assert_emails that can be used like:

assert_emails 1 do
UserMailer.deliver_signup_notification(@user)
end

There is also negated version : assert_no_emails that takes a block.

No comments:

Post a Comment