Ruby Snack #30: Testing Devise Mailers

preview_player
Показать описание
Want to make sure your users are receiving Devise emails and that all your settings are correct? Better test it!

In this episode, we'll walk through creating model and mailer tests for testing if a new user received a confirmation email.

Bonus: we'll add the Devise confirmable module!

To download the pdf, visit: rubythursday . com / episodes / ruby-snack-30-testing-devise-mailers
Рекомендации по теме
Комментарии
Автор

Hey Melissa, I coded along up until updating the development.rb and test.rb's default host to localhost:3000. For some reason I couldn't get my tests to pass. Also, from the beginning I didn't get the same error messages as you. I got errors but nothing specified. Any thoughts on what may I do to fix this issue/learn some more?

arthurphiladelpho
Автор

Thanks for this helpful video snack! In case it helps anyone else, I just wanted to add this: I found that I had to change that last test to include('As Picard says, "Engage"!)```

pineapplesoda