我在 ruby 1.8.7 和带有自定义 gemset 的 rvm 下运行 Rails 2.3.4 应用程序。
在尝试启动并运行 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 仍然加载。这是怎么回事?