1
我正在ruby 1.8.7和rvm下運行一個Rails 2.3.4應用程序和一個自定義gemset。Rspec顯示錯誤的版本號
爲了讓rspec正常運行,我嘗試了幾次卸載rspec 2並安裝rspec和rspec-rails 1.3.4版。但是,當我運行rspec -v
時,無論我做什麼,都得到2.10.0。
最後我得到這個錯誤信息:
You are running rspec-2, but it seems as though rspec-1 has been loaded as
well. This is likely due to a statement like this somewhere in the specs:
require 'spec'
Please locate that statement, remove it, and try again.
所以看起來2.10.0實際上仍然加載。即使我做了gem uninstall rspec
rspec仍然被加載。這是怎麼回事?
「bundle exec rspec -v」怎麼樣? –
我沒有運行捆綁器。 – James