Forum: Ruby on Rails ActionMailer test helpers

Posted by akalyaev (Guest)
on 2012-11-14 14:36
(Received via mailing list)
Hi,

I recently found these two helpers (assert_emails, assert_no_emails) 
inside
ActionMailer gem:
https://github.com/rails/rails/blob/master/actionm...

I wonder why they are not mentioned in the official documentation:

   - http://guides.rubyonrails.org/testing.html#testing...
   - http://guides.rubyonrails.org/action_mailer_basics.html

Are they deprecated ? Should I use them or better to stick with 
`assert_difference
'ActionMailer::Base.deliveries.size', +1 do` ?

Regards,
Anton
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.