Rails4 Rake:测试错误

时间:2013-03-19 05:52:38

标签: ruby-on-rails mongoid rake ruby-on-rails-4

最近更新测试后无效。 Ruby 2.0.0-p0,rails 4.0.0beta1,mongoid 4.0.0。

/Users/doniv/.rvm/gems/ruby-2.0.0-p0@global/gems/rake-10.0.3/lib/rake/task_manager.rb:49:in `[]': Don't know how to build task 'db:test:load' (RuntimeError)
from /Users/doniv/.rvm/gems/ruby-2.0.0-p0@global/gems/rake-10.0.3/lib/rake/task.rb:321:in `[]'
from /Users/doniv/.rvm/gems/ruby-2.0.0-p0/bundler/gems/rails-f0d5e32f891d/railties/lib/rails/commands/test_runner.rb:103:in `initialize'
from /Users/doniv/.rvm/gems/ruby-2.0.0-p0/bundler/gems/rails-f0d5e32f891d/railties/lib/rails/commands/test_runner.rb:18:in `new'
from /Users/doniv/.rvm/gems/ruby-2.0.0-p0/bundler/gems/rails-f0d5e32f891d/railties/lib/rails/commands/test_runner.rb:18:in `start'
from /Users/doniv/.rvm/gems/ruby-2.0.0-p0/bundler/gems/rails-f0d5e32f891d/railties/lib/rails/commands.rb:90:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'

有什么想法吗?

谢谢!

1 个答案:

答案 0 :(得分:0)

无效:

gem 'rails', '~> 4.0.0.beta', :git => 'git://github.com/rails/rails.git'  
...
gem 'sass-rails',   '~> 4.0.0.beta', :git => 'git://github.com/rails/sass-rails.git'
gem 'coffee-rails', '~> 4.0.0.beta', :git => 'git://github.com/rails/coffee-rails.git'

有效:

gem 'rails', '~> 4.0.0.beta'  
...   
gem 'sass-rails',   '~> 4.0.0.beta'
gem 'coffee-rails', '~> 4.0.0.beta'