Forum: Ruby on Rails ActionMailer test helpers

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
D83b63db79b42978fe35e120550ca180?d=identicon&s=25 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
This topic is locked and can not be replied to.