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