最近我在我的rails 2.3.5中添加了rspec测试但是我无法简单地运行rake -T命令.然后我找到了 Rails 3 – If I’m using RSpec, can I just delete the ‘test’ folder?并在我的Gemfile中添加了gem test-unit.这显示
rake aborted! can't activate test-unit (= 1.2.3), already activated test-unit-2.3.0. Make sure all dependencies are added to Gemfile.您正在尝试加载旧版本的测试单元,其中已经激活了新版本.要修复此错误,请执行任一操作
1.删除新版本的测试单元
2.在rake文件中找到测试单元1.2.3版本,并将其替换为2.3.0