diff options
author | David Chelimsky <dchelimsky@gmail.com> | 2010-09-22 16:24:35 -0500 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-09-24 12:52:38 +0200 |
commit | 672ce11d684e1211836ca22cf5b0ca6f626f1719 (patch) | |
tree | 9e64cb6a0ee402d1fbe352a87c7eb27e38fb8168 | |
parent | 7223fe7faf26f717aee056942aadecc62e8f5cd9 (diff) | |
download | rails-672ce11d684e1211836ca22cf5b0ca6f626f1719.tar.gz rails-672ce11d684e1211836ca22cf5b0ca6f626f1719.tar.bz2 rails-672ce11d684e1211836ca22cf5b0ca6f626f1719.zip |
only abort in test_help in production env
Signed-off-by: José Valim <jose.valim@gmail.com>
-rw-r--r-- | railties/lib/rails/test_help.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/lib/rails/test_help.rb b/railties/lib/rails/test_help.rb index ec5e4a357c..3f90e786c1 100644 --- a/railties/lib/rails/test_help.rb +++ b/railties/lib/rails/test_help.rb @@ -1,6 +1,6 @@ -# Make double-sure the RAILS_ENV is set to test, -# so fixtures are loaded to the right database -abort("Abort testing: Your Rails environment is not running in test mode!") unless Rails.env.test? +# Make double-sure the RAILS_ENV is not set to production, +# so fixtures aren't loaded into that environment +abort("Abort testing: Your Rails environment is not running in test mode!") if Rails.env.production? require 'test/unit' require 'active_support/core_ext/kernel/requires' |