How do I set the rails environment (RAILS_ENV)?
Note that when setting the Rails environment you have to pass it differently in different cases. For rake, set RAILS_ENV= as part of the command line options. rake db:migrate RAILS_ENV=test…
Achieving Developer Excellence with Automated Testing
Note that when setting the Rails environment you have to pass it differently in different cases. For rake, set RAILS_ENV= as part of the command line options. rake db:migrate RAILS_ENV=test…