grosser/parallel_tests — Issue #81: Since 0.6.14: Wrong environment
Author: ledermann
Created: 2012-01-14 09:35:11+00:00
State: open

Version 0.6.14 includes this commit (d89089cbfca0ed210d3f5bb8fd4e1d891fc27903) which breaks my Rails 2.3.14 application, so I can't update the gem anymore.

Since 0.6.14 my tests run in *production* environment instead of *test* environment, so this causes a lot of errors. I have checked 0.6.16, too. I have added "db:abort_if_pending_migrations" to my Rakefile, but it doesn't change (I think I don't need this because I'm using ActiveRecord).

Some additional info: In my environment.rb there is this line

ENV['RAILS_ENV'] ||= 'production'

Changing it to

ENV['RAILS_ENV'] ||= 'test'

makes 0.6.14 work, but I don't like this change.

BTW: I'm using [Pow](pow.cx) for local development and have a .powenv with this line:

export RAILS_ENV=development

Any hints?