The Fourth and Fifth Tests: Confirmation Message and Email
Explore how to write feature tests in Ruby on Rails for user confirmation messages and email notifications. Understand configuring Devise's confirmable module and using the email_spec gem to ensure email delivery, and learn to fix typical issues during test implementation.
We'll cover the following...
We'll cover the following...
The fourth test
The fourth step is still pending, so we’ll need to define it.
Suppose we want to see a flash message that welcomes the user. In other words, if the user sees the word “Welcome” on the screen, the test should pass.
Add the step definition and run the test.
Note: You need to add the code above to the SPA.