[英]RSpec Version Problem - Rspec Won't Run
我(錯誤地)將Rspec更新到版本2.4,但是我的Gemfile在版本2.3上。 我現在嘗試運行Rspec時收到以下錯誤消息。 我相信我需要恢復到2.3 -知道如何做到這一點嗎?
/Users/woshea/.rvm/gems/ruby-1.9.2-p136@global/gems/bundler-1.0.7/lib/bundler/runtime.rb:27:in `block in setup': You have already activated rspec-core 2.4.0, but your Gemfile requires rspec-core 2.3.1. Consider using bundle exec. (Gem::LoadError)
兩種選擇:
gem install
,它應該可以工作。 bundle exec rspec
而不是rpsec
,這將確保它使用捆綁的版本。 您只能通過捆綁器啟動規范
bundle exec rspec spec
要么
bundle exec rake spec
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.