You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given I pass the option to use omniauth with facebook and mongoid to the rails_composer for a basic todo app
question Install an example application?
1) I want to build my own application
2) membership/subscription/saas
3) rails-prelaunch-signup
4) rails3-bootstrap-devise-cancan
5) rails3-devise-rspec-cucumber
6) rails3-mongoid-devise
7) rails3-mongoid-omniauth
8) rails3-subdomains
railsapps Enter your selection: 1
recipe Running setup recipe...
setup Your operating system is darwin12.3.0.
setup You are using Ruby version 1.9.3.
setup You are using Rails version 3.2.13.
question Web server for development?
1) WEBrick (default)
2) Thin
3) Unicorn
4) Puma
setup Enter your selection: 2
question Web server for production?
1) Same as development
2) Thin
3) Unicorn
4) Puma
setup Enter your selection: 1
question Database used in development?
1) SQLite
2) PostgreSQL
3) MySQL
4) MongoDB
setup Enter your selection: 4
question How will you connect to MongoDB?
1) Mongoid
setup Enter your selection: 1
question Template engine?
1) ERB
2) Haml
3) Slim (experimental)
setup Enter your selection: 1
question Unit testing?
1) Test::Unit
2) RSpec
3) MiniTest
setup Enter your selection: 2
question Integration testing?
1) None
2) RSpec with Capybara
3) Cucumber with Capybara
4) Turnip with Capybara
5) MiniTest with Capybara
setup Enter your selection: 3
question Continuous testing?
1) None
2) Guard
setup Enter your selection: 1
question Fixture replacement?
1) None
2) Factory Girl
3) Machinist
4) Fabrication
setup Enter your selection: 2
question Front-end framework?
1) None
2) Twitter Bootstrap
3) Zurb Foundation
4) Skeleton
5) Just normalize CSS for consistent styling
setup Enter your selection: 2
question Twitter Bootstrap version?
1) Twitter Bootstrap (Less)
2) Twitter Bootstrap (Sass)
setup Enter your selection: 1
question Add support for sending email?
1) None
2) Gmail
3) SMTP
4) SendGrid
5) Mandrill
setup Enter your selection: 2
question Authentication?
1) None
2) Devise
3) OmniAuth
setup Enter your selection: 3
question OmniAuth provider?
1) Facebook
2) Twitter
3) GitHub
4) LinkedIn
5) Google-Oauth-2
6) Tumblr
setup Enter your selection: 1
question Authorization?
1) None
2) CanCan with Rolify
setup Enter your selection: 2
question Use a form builder gem?
1) None
2) SimpleForm
setup Enter your selection: 2
question Install a starter app?
1) None
2) Home Page
3) Home Page, User Accounts
4) Home Page, User Accounts, Admin Dashboard
setup Enter your selection: 3
When I run the test suite inside the generated app
Then I see these failing tests related to twitter instead of facebook.
➜todogit:(master)rake/Users/akshatpradhan/.rbenv/versions/1.9.3-p392/bin/ruby -Srspec./spec/controllers/home_controller_spec.rb./spec/controllers/sessions_controller_spec.rb./spec/controllers/users_controller_spec.rb./spec/models/user_spec.rbFFF.*......
Pending:
Useraddsomeexamplesto(ordelete) /Users/akshatpradhan/Sites/tmp/todo/spec/models/user_spec.rb# No reason given# ./spec/models/user_spec.rb:4Failures:
1)SessionsControllerGET'new'redirectesuserstoauthenticationFailure/Error: assert_redirected_to'/auth/twitter'MiniTest::Assertion:
Expectedresponsetobearedirectto <http://test.host/auth/twitter> butwasaredirectto <http://test.host/auth/facebook>
# ./spec/controllers/sessions_controller_spec.rb:19:in `block (3 levels) in <top (required)>'2)SessionsControllercreatesnewuserredirectsnewuserswithblankemailtofillintheiremailFailure/Error: page.shouldhave_content('Logged in as Bob')expectedtofindtext"Logged in as Bob"in"Todo Logout × Please enter your email address. Email"# ./spec/controllers/sessions_controller_spec.rb:27:in `block (3 levels) in <top (required)>'3)SessionsControllercreatesnewuserredirectsuserswithemailbacktoroot_urlFailure/Error: page.shouldhave_content('Signed in!')expectedtofindtext"Signed in!"in"Todo Logout × Please enter your email address. Email"# ./spec/controllers/sessions_controller_spec.rb:34:in `block (3 levels) in <top (required)>'Finishedin5.35seconds11examples,3failures,1pendingFailedexamples:
rspec./spec/controllers/sessions_controller_spec.rb:17# SessionsController GET 'new' redirectes users to authenticationrspec./spec/controllers/sessions_controller_spec.rb:24# SessionsController creates new user redirects new users with blank email to fill in their emailrspec./spec/controllers/sessions_controller_spec.rb:31# SessionsController creates new user redirects users with email back to root_urlRandomizedwithseed36570rakeaborted!/Users/akshatpradhan/.rbenv/versions/1.9.3-p392/bin/ruby -Srspec./spec/controllers/home_controller_spec.rb./spec/controllers/sessions_controller_spec.rb./spec/controllers/users_controller_spec.rb./spec/models/user_spec.rbfailedTasks: TOP=> default=>spec(Seefulltracebyrunningtaskwith --trace)
Given I pass the option to use omniauth with facebook and mongoid to the
rails_composer
for a basic todo appWhen I run the test suite inside the generated app
Then I see these failing tests related to twitter instead of facebook.
Is it possible that the twitter omniauth tests in the recipe are being used instead of the facebook omniauth tests in the recipe? https://github.com/akshatpradhan/todo/blob/master/spec/factories/users.rb
The text was updated successfully, but these errors were encountered: