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

Choosing facebook for omniauth leads in fail tests (solution in description) #329

Open
joel1di1 opened this issue Dec 24, 2014 · 0 comments

Comments

@joel1di1
Copy link

When choosing omniauth and facebook, the test 'Sign in user cannot sign in with invalid account' fails.
To fix the tests:

  1. Replace 'twitter' by 'facebook' (or provider id) line 23 in sign_in_spec.rb
  2. Replace 'twitter' by 'facebook' (or provider id) lines 5 and 6 in spec/support/helpers/omniauth.rb

I don't know (yet) how the generator is working so I don't know where to look.

Thanks for this project, really helpful.

Here the README:

option  Build a starter application?
choose  Enter your selection: [rails-omniauth]
option  Get on the mailing list for Rails Composer news?
choose  Enter your selection: [none]
option  Web server for development?
choose  Enter your selection: [webrick]
option  Web server for production?
choose  Enter your selection: [puma]
option  Database used in development?
choose  Enter your selection: [postgresql]
option  Template engine?
choose  Enter your selection: [haml]
option  Test framework?
choose  Enter your selection: [rspec]
option  Continuous testing?
choose  Enter your selection: [guard]
option  Front-end framework?
choose  Enter your selection: [bootstrap3]
option  Add support for sending email?
choose  Enter your selection: [none]
option  Authentication?
choose  Enter your selection: [omniauth]
option  Devise modules?
choose  Enter your selection: []
option  OmniAuth provider?
choose  Enter your selection: [facebook]
option  Authorization?
choose  Enter your selection: [none]
option  Use a form builder gem?
choose  Enter your selection: [simple_form]
option  Add pages?
choose  Enter your selection: [about+users]
option  Set a locale?
choose  Enter your selection: [none]
option  Install page-view analytics?
choose  Enter your selection: [ga]
option  Add a deployment mechanism?
choose  Enter your selection: [heroku]
option  Set a robots.txt file to ban spiders?
choose  Enter your selection: [true]
option  Create a GitHub repository? (y/n)
choose  Enter your selection: []
option  Add gem and file for environment variables?
choose  Enter your selection: [false]
option  Reduce assets logger noise during development?
choose  Enter your selection: [true]
option  Improve error reporting with 'better_errors' during development?
choose  Enter your selection: [true]
option  Use 'pry' as console replacement during development and test?
choose  Enter your selection: [false]
option  Use or create a project-specific rvm gemset?
choose  Enter your selection: []
@joel1di1 joel1di1 changed the title Choosing facebook for omniauth leads in a fail test (solution in description) Choosing facebook for omniauth leads in fail tests (solution in description) Dec 24, 2014
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