I’ve followed the recommendation from the Devise github pages for this:
Now this works great, but how would you test that you have this behavior now?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Well there are two ways of testing it one in the unit level by writing tests in the controllers that inherit the application controller. The code will look something like
For cucumber you should probably write a step to do the login and assert if u are on the expected after sign_in page.