Skip to content

Instantly share code, notes, and snippets.

@lucascaton
Created April 19, 2011 18:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lucascaton/929137 to your computer and use it in GitHub Desktop.
Save lucascaton/929137 to your computer and use it in GitHub Desktop.
[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
@lucascaton
Copy link
Author

It happens because the devise gem was updated.

To fix it, verify the new controller from Devise and copy the new code.

@dwormuth
Copy link

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?

@dwormuth
Copy link

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.

@lucascaton
Copy link
Author

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.

@dwormuth
Copy link

dwormuth commented Aug 18, 2011 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment