only abort in test_help in production env

Signed-off-by: José Valim <jose.valim@gmail.com>
This commit is contained in:
David Chelimsky
2010-09-22 16:24:35 -05:00
committed by José Valim
parent 7223fe7faf
commit 672ce11d68

View File

@@ -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'