我已经部署了一个应用到Heroku,这一切都很好.问题是我无法让我的单元测试远程运行.我试过了:
heroku rake test:units
和
heroku rake db:test:prepare
但是对于我来说,我得到了一个大量的堆栈跟踪,结尾是:
rake aborted! undefined method `[]' for nil:NilClass /app/[id]/home/.bundle/gems/ruby/1.9.1/gems/activerecord-3.0.3/lib/active_record/railties/databases.rake:429:in `block (3 levels) in <top (required)>' /usr/ruby1.9.2/lib/ruby/1.9.1/rake.rb:634:in `call' /usr/ruby1.9.2/lib/ruby/1.9.1/rake.rb:634:in `block in execute' /usr/ruby1.9.2/lib/ruby/1.9.1/rake.rb:629:in `each' /usr/ruby1.9.2/lib/ruby/1.9.1/rake.rb:629:in `execute'
我正在运行竹mri 1.9.2堆栈.
到目前为止,我最接近的答案是this blog post from 2009.