【发布时间】:2020-07-22 20:57:46
【问题描述】:
运行rails console时出现错误:
`require': Please add test-unit gem to your Gemfile: `gem 'test-unit', '~> 3.0'`(cannot load such file -- test/unit/testcase) (LoadError)
如果我将这个 gem 添加到我的 Gemfile 中,那么 rails 控制台就可以正常工作。但为什么它一直要求我将此 gem 添加到我的 Gemfile 中?
Rails 版本 3.2.2
【问题讨论】:
-
可能是因为你的一只苍蝇需要'test-unit' gem
-
我遇到了同样的问题。我的 Gem 锁没有任何依赖关系。我也在运行rails 3.2。希望它会在 Rails 4.2 中消失
标签: ruby-on-rails