gpt4 book ai didi

ruby-on-rails - Rails生成抛出Minitest错误?

转载 作者:行者123 更新时间:2023-12-04 06:10:54 25 4
gpt4 key购买 nike

我刚刚开始学习Rails,并且正在创建我的第一个项目。在我的Gemfile中,我添加了:

group :test, :development do
gem 'turn'
gem 'rspec-rails'
gem 'capybara'
gem 'guard-rspec'
gem 'growl_notify'
end

并运行 bundle。到目前为止一切都很好。

我尝试运行 rails g来查看我的软件包是否已安装,但是遇到以下错误:
GarysMBA:glecto swally_1991$ rails g
gem install minitest
/Library/Ruby/Gems/1.8/gems/turn-0.9.4/lib/turn/minitest.rb:9:in `require': no such file to load -- minitest/unit (LoadError)
from /Library/Ruby/Gems/1.8/gems/turn-0.9.4/lib/turn/minitest.rb:9
from /Library/Ruby/Gems/1.8/gems/turn-0.9.4/lib/turn.rb:13:in `require'
from /Library/Ruby/Gems/1.8/gems/turn-0.9.4/lib/turn.rb:13
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.21/lib/bundler/runtime.rb:68:in `require'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.21/lib/bundler/runtime.rb:68:in `require'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.21/lib/bundler/runtime.rb:66:in `each'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.21/lib/bundler/runtime.rb:66:in `require'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.21/lib/bundler/runtime.rb:55:in `each'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.21/lib/bundler/runtime.rb:55:in `require'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.21/lib/bundler.rb:122:in `require'
from /Users/swally_1991/Desktop/glecto/config/application.rb:13
from /Library/Ruby/Gems/1.8/gems/railties-3.2.3/lib/rails/commands.rb:24:in `require'
from /Library/Ruby/Gems/1.8/gems/railties-3.2.3/lib/rails/commands.rb:24
from script/rails:6:in `require'
from script/rails:6

我已经搜索了配置,但是在任何地方都找不到对 的引用最小测试?有人遇到过这个问题吗?还是可以指出正确的修复方向?

最佳答案

group :test do
gem 'turn', '< 0.8.3'
end

这应该对您有帮助,请阅读更多 Rails 3.1.1 and Cucumber - Error

关于ruby-on-rails - Rails生成抛出Minitest错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9989609/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com