【问题标题】:rails console giving error to add test-unit gem to gemfilerails 控制台给出错误以将测试单元 gem 添加到 gemfile
【发布时间】: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


【解决方案1】:

【讨论】:

    猜你喜欢
    • 2023-03-07
    • 1970-01-01
    • 1970-01-01
    • 2018-07-28
    • 2013-10-16
    • 2019-09-18
    • 2018-08-01
    • 1970-01-01
    • 2014-04-25
    相关资源
    最近更新 更多