Confirmation token not valid problem

185 views
Skip to first unread message

Fayimora

unread,
Feb 10, 2012, 11:56:04 AM2/10/12
to Devise
I was following a tutorial(The rails 3 way) on how to use Devise.
However, I got stuck trying to make my email feature pass. When a user
clicks a confirmation link in his/her inbox, They should be re-
directed to the application and the account should be confirmed.

However, this doesn't seem to work. I keep getting the error below
when I run my tests. Can anyone please help me with this?

Error..
expected there to be content "Your account was successfully confirmed"
in "\t\n\t \tTicketee\n\t\n\tSign up\n\t\tSign in\n\tTicketee
\nResend confirmation instructions\n\n\n \n 1 error
prohibited this user from being saved:\n Confirmation token is
invalid\n\n\n Email\n\n \n\n Sign inSign upForgot your
password?" (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/web_steps.rb:107:in `/^(?:|I )should
see "([^"]*)"$/'
features/signing_in.feature:12:in `Then I should see "Your
account was successfully confirmed"'

Fayimora

unread,
Feb 11, 2012, 9:49:16 AM2/11/12
to Devise
Sorry I meant Rails 3 in Action
Reply all
Reply to author
Forward
0 new messages