Created
April 19, 2011 18:21
-
-
Save lucascaton/929137 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ree-1.8.7-2011.03]~/projects/code/ruby/pessoais/golks(working*)$ rspec spec/integration/users/users_spec.rb -l 20 | |
`include Capybara` is deprecated please use `include Capybara::DSL` instead. | |
`include Capybara` is deprecated please use `include Capybara::DSL` instead. | |
`include Capybara` is deprecated please use `include Capybara::DSL` instead. | |
Run filtered using {:line_number=>20} | |
Users management | |
Trying sign in with a not confirmed user account (FAILED - 1) | |
Failures: | |
1) Users management Trying sign in with a not confirmed user account | |
Failure/Error: click_button 'Login' | |
NameError: | |
uninitialized constant NewController | |
# (eval):2:in `send' | |
# (eval):2:in `click_button' | |
# ./spec/integration/users/users_spec.rb:31 | |
Finished in 3.04 seconds | |
1 example, 1 failure |
I'm getting this same error with rspec and capybara. I don't understand the "verify new controller and copy the new code" comment. Could you rephrase it?
OK, I figured this out. I forgot that I had copied the sessions_controller to a local file. This is what needs to be "copied" and updated. Thanks for the pointer.
Check the last version of Devise's controller (https://github.com/plataformatec/devise/blob/master/app/controllers/devise/registrations_controller.rb) and compare with your controller.
Several lines of code was changed.
Wow, thanks for the quick response! Your GIST ultimately reminded me
that I had overridden a devise controller. I did manage to get it
working thanks to your hint.
---
lucascaton
***@***.***
August 17, 2011 20:48
Check the last version of Devise's controller
(https://github.com/plataformatec/devise/blob/master/app/controllers/devise/registrations_controller.rb)
and compare with your controller.
Several lines of code was changed.
##
David W. Wormuth
6781 Morehouse Flats Road
Jamesville, NY 13078
dwormuth@post.harvard.edu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It happens because the devise gem was updated.
To fix it, verify the new controller from Devise and copy the new code.