0
我試圖將我的項目從rspec-rails 2.14升級到最新版本。我正在關注these instructions。我遇到了安裝RSpec 2.99的問題。加入gem 'rspec-rails', '~> 2.99.0'
我Gemfile
和運行bundle install
後,我看到以下錯誤:升級到RSpec 3的問題
Bundler could not find compatible versions for gem "rspec-core":
In snapshot (Gemfile.lock):
rspec-core (= 2.14.8)
In Gemfile:
guard-rspec (>= 0) ruby depends on
rspec (< 4.0, >= 2.14) ruby depends on
rspec-core (~> 2.14.0) ruby
rspec-rails (~> 2.99.0) ruby depends on
rspec-core (~> 2.99.0) ruby
Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
我怎樣才能解決這個問題而影響到儘可能少的寶石版本越好?我只想更新RSpec,沒有別的。如果我在沒有任何參數的情況下運行bundle update
,它會更新一堆其他寶石,並使我的一堆測試失敗。我可以單獨更新像rspec-core
這樣的依賴寶石到某個特定版本嗎?