Wednesday, 2 October 2013

#EANF#

#EANF#

I have a test with rspec where I wrote
before { visit edit_password_reset_path(user.password_reset_token) }
I run the associated tests and here what I get :
No route matches [GET] "/password_resets/edit"
In order to understand why it doesn't work, I want to know what's in the
user.password_reset_token.
How can I make that variable appear when running the tests ?

No comments:

Post a Comment