ruby-on-rails – Rails生成抛出Minitest错误?
发布时间:2020-12-16 22:40:40 所属栏目:百科 来源:网络整理
导读:我刚开始学习Rails,我正在创建我的第一个项目.在我的Gemfile中,我添加了: group :test,:development do gem 'turn' gem 'rspec-rails' gem 'capybara' gem 'guard-rspec' gem 'growl_notify'end 并运行捆绑.到目前为止一切都很好. 我尝试运行rails g来查看
我刚开始学习Rails,我正在创建我的第一个项目.在我的Gemfile中,我添加了:
group :test,:development do gem 'turn' gem 'rspec-rails' gem 'capybara' gem 'guard-rspec' gem 'growl_notify' end 并运行捆绑.到目前为止一切都很好. 我尝试运行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 我搜索了我的配置,但我找不到任何地方对Minitest的引用?以前有人遇到过这个问题吗?或者可以指出我正确的方向固定它? 解决方法group :test do gem 'turn','< 0.8.3' end 这应该对你有帮助,请阅读更多Rails 3.1.1 and Cucumber – Error (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |