Actions
Patch #4572
closedMake it harder to ruin your database
Patch #4572:
Make it harder to ruin your database
Description
New Rails apps haveENV["RAILS_ENV"] = "test"
in test_helper.rb.
You haveENV["RAILS_ENV"] ||= "test"
Good I have backups. :)
Please add this line:abort "Preventing you from running tests in '#{ENV['RAILS_ENV']}' environment." unless ENV["RAILS_ENV"] =~ /^test/
Actions