6
我剛剛開始學習Rails,並且正在創建我的第一個項目。在我添加的Gemfile中:Rails生成拋出Minitest錯誤?
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
我已搜查我的配置,但我不能找到MINITEST任何地方的任何引用?有沒有人遇到過這個問題?或者可以指出我正在修復它的正確方向?
謝謝。完美工作。 – starskythehutch 2012-06-09 12:31:22