guard / guard-rspec

Guard::RSpec automatically run your specs (much like autotest)
https://rubygems.org/gems/guard-rspec
MIT License
1.31k stars 240 forks source link

Getting bundler to resolve correctly with Rails 5 and RSpec 3.5.0 beta #360

Closed colszowka closed 8 years ago

colszowka commented 8 years ago

Hey, just came here for documentation purposes.

In my Rails 5.0.0.beta3 app, I ran into an issue when trying to upgrade to the rspec-rails 3.5.0.beta1 version, with bundler failing to resolve things correctly for me.

What I had in my Gemfile:

gem 'rspec-rails', '~> 3.5.0.beta1'
gem 'guard-rspec', '~> 4.6', require: false

This failed to resolve a matching version for rspec and rspec-core. Not sure if this might be an actual issue in the bundler resolver, I'll think about filing an issue there as well, but regardless, being explicit about what I want solved the problem for me:

gem 'rspec', '~> 3.5.0.beta1'
gem 'rspec-core', '~> 3.5.0.beta1'
gem 'rspec-rails', '~> 3.5.0.beta1'
gem 'guard-rspec', '~> 4.6', require: false
colszowka commented 8 years ago

...and closing right away, this is just to help fellow future googlers.

marcusroberts commented 8 years ago

Thank you, that just solved the exact same problem for me.

e2 commented 8 years ago

I've updated the README to give a quick cheatsheet on using RSpec beta: https://github.com/guard/guard-rspec/blob/master/README.md#installing-with-beta-versions-of-rspec