diff options
Diffstat (limited to 'railties/lib/test_help.rb')
-rw-r--r-- | railties/lib/test_help.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/railties/lib/test_help.rb b/railties/lib/test_help.rb index 3f3cab8a95..9238d1e244 100644 --- a/railties/lib/test_help.rb +++ b/railties/lib/test_help.rb @@ -1,5 +1,9 @@ require 'application' +# Make double-sure the RAILS_ENV is set to test, +# so fixtures are loaded to the right database +silence_warnings { RAILS_ENV = "test" } + require 'test/unit' require 'active_record/fixtures' require 'action_controller/test_process' |