Choosing facebook for omniauth leads in fail tests (solution in description)
Opened this issue · 0 comments
joel1di1 commented
When choosing omniauth and facebook, the test 'Sign in user cannot sign in with invalid account' fails.
To fix the tests:
- Replace 'twitter' by 'facebook' (or provider id) line 23 in sign_in_spec.rb
- 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: []