Skip to content
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

sign_in_spec.rb fails after google omniauth install #2

Open
sixty4bit opened this issue Dec 26, 2015 · 1 comment
Open

sign_in_spec.rb fails after google omniauth install #2

sixty4bit opened this issue Dec 26, 2015 · 1 comment

Comments

@sixty4bit
Copy link

using Google-Oauth-2 and running specs you get a failure in

rails_apps_testing/lib/generators/testing/configure/templates/spec/omniauth/features/users/sign_in_spec.rb

On line 27. The invalid_credentials are not working. It is signing in successfully with a valid user named "Example User"

@sixty4bit
Copy link
Author

Line 23: OmniAuth.config.mock_auth[:twitter] = :invalid_credentials

When I change it to:
OmniAuth.config.mock_auth[:default] = :invalid_credentials

The invalid_signin passes as expected. However the signout fails after. Why is default not reset?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant