techiferous / tabulous

Easy tabbed navigation for Rails
Other
322 stars 35 forks source link

Tests will fail due to incompatible versions of Capybara and RSpec #58

Open wynksaiddestroy opened 7 years ago

wynksaiddestroy commented 7 years ago

At first I ran script/for_all_test_apps bundle install to install all necessary dependencies without getting any errors. If I try to run script/for_all_test_apps bundle exec rake afterwards, I'll get the following error:

cd spec/applications/bootstrap/rails_4-0-5 && bundle exec rake /usr/local/Cellar/ruby/2.3.1_2/bin/ruby -I/usr/local/lib/ruby/gems/2.3.0/gems/rspec-core-3.5.4/lib:/usr/local/lib/ruby/gems/2.3.0/gems/rspec-support-3.5.0/lib /usr/local/lib/ruby/gems/2.3.0/gems/rspec-core-3.5.4/exe/rspec --pattern spec/*{,//*}/_spec.rb /usr/local/lib/ruby/gems/2.3.0/gems/rspec-rails-3.5.2/lib/rspec/rails/vendor/capybara.rb:14:in `<top (required)>': You are using capybara 2.0.3. RSpec requires >= 2.2.0. (RuntimeError)

My guess: because there's no version specified for rspec-rails in the corresponding Gemfile, the (latest) installed version is used, which is obviously incompatible with Capybara ~> 2.0.2. Do you want to update to RSpec and Capybara to the latest versions or do you want to use a somewhat ancient version of RSpec that works with Capybara ~2.0.2?

techiferous commented 7 years ago

I'll leave the decision up to you and I'm fine with an expedient solution.