我使用RSpec和RSpec,并以RSpec 3.0.0.rc1为目标。guard-rspec在其宝石中有以下内容
s.add_dependency 'rspec', '>= 2.14', '< 4.0'在我的Gemfile中,我要说明:
gem 'guard-rspec', require: false
gem 'rspec-rails', '~> 3.0.0.rc1'当我运行bundle update时,我得到以下输出:
Bundler could not find compatible versions for gem "rspec-expectations":
In Gemfile:
rspec (< 4.0, >= 2.14) ruby depends on
rspec-expectations (~> 2.14.0) ruby
rspec-rails (~> 3.0.0.rc1) java depends on
rspec-expectations (3.0.0.rc1)如何使此配置正确解析?
发布于 2014-05-23 11:41:21
您还应该将gem 'rspec', '~> 3.0.0.rc1'添加到Gemfile中
https://stackoverflow.com/questions/23819714
复制相似问题