All threads / How to test ActionMailer in Rails Discussion

Ask A Question


You’re not receiving notifications from this thread.

How to test ActionMailer in Rails Discussion

Great episode, Chris. I like how you said you don't really need to test CSS styling but instead focus on testing the higher level functionality of your mailers. That way, a developer doesn't go down a rabbit hole writing too fine grained tests.

Also, the last point about ActionMailer::Base.deliveries makes me wonder what the difference is between that and assert_emails.


Cool, thanks. I've been using mailcatcher, which is great for developing but you have to reload! in the console to get changes in the templates to show up. Previews looks much better.


Webpacker::Manifest::MissingEntryError in Pages#home i get this error when i run integration tests, can any one help?

Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 51,723+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2021 GoRails, LLC. All rights reserved.