-
-
Notifications
You must be signed in to change notification settings - Fork 976
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'extra' method undefined #558
Comments
FWIW, here's the way I'm getting it to pass the Cucumber tests for now, which is pretty lame. I keep getting trouble at the
Here's my Gemfile:
|
This error should be fixed while Pull Request #556 will get merged. |
Thanks! I think I tried your fix, is it the one stated in the Gemfile I have above? Seems like not many people are having this strange issue. Anyhow, thanks for the patch! |
Probably people don't use the Mash functionality -> using data.extra instead of data["extra"]. That's why they don't stumble upon this issue. If you want to use my fix for now then except for using my fork you need to specify that you want to use branch mash_in_test_mode - use smth like that:
|
Hi piotrj, I have tried your fix but I'm still running into the same issues. :(. |
I have submited my patch to solve this issue, you can find it here: #564 |
I still have the same issue - ive been pulling out my hair with this. Did anyone manage to get it working? I tried: gem 'omniauth', :git => 'git://github.com/piotrj/omniauth.git', :branch => "mash_in_test_mode" gem 'omniauth', :git => 'https://github.com/dombesz/omniauth.git' neither worked ... |
Hi all! This is driving me nuts. I've set up Devise 1.5 + Omniauth 1.0. Funny thing is, development mode works fine. But when testing with cucumber, I get this error:
When I follow "Sign in with Facebook" # features/step_definitions/web_steps.rb:57 undefined method
extra' for #Hash:0x007fc59c482bc8 (NoMethodError)./app/models/user.rb:15:in
find_for_facebook_oauth' ./app/controllers/users/omniauth_callbacks_controller.rb:4:in
facebook'(eval):2:in
click_link' ./features/step_definitions/web_steps.rb:58:in
/^(?:|I )follow "([^"]*)"$/'features/facebook.feature:11:in
When I follow "Sign in with Facebook"'
I have
OmniAuth.config.test_mode = true
intest.rb
. Any suggestions? Thanks!The text was updated successfully, but these errors were encountered: