I've deployed an app to Heroku, and it all works fine. The problem is I can't get my unit tests running remotely. I've tried:
heroku rake test:units
and
heroku rake db:test:prepare
but for both I get a massive stack trace, ending with:
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'
I'm running the bamboo-mri-1.9.2
stack.
The closest I've got to an answer so far is this blog post from 2009.