diff options
author | Joao Carlos <mail@joao-carlos.com> | 2010-02-28 15:05:03 +0000 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-03-03 10:12:42 +0100 |
commit | 70b849546871610513bf587ecb7aebcaa8e20773 (patch) | |
tree | 5d33e04c1baa90b3bf1b91e14422310c23c645b5 /railties | |
parent | f36a380c07186782a7c9e2c3d169b325ee8ab6dc (diff) | |
download | rails-70b849546871610513bf587ecb7aebcaa8e20773.tar.gz rails-70b849546871610513bf587ecb7aebcaa8e20773.tar.bz2 rails-70b849546871610513bf587ecb7aebcaa8e20773.zip |
Better with #abort
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/test_help.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/railties/lib/rails/test_help.rb b/railties/lib/rails/test_help.rb index c6d67bfc19..2ed5353755 100644 --- a/railties/lib/rails/test_help.rb +++ b/railties/lib/rails/test_help.rb @@ -1,9 +1,6 @@ # Make double-sure the RAILS_ENV is set to test, # so fixtures are loaded to the right database -unless Rails.env.test? - puts "Abort testing: Your Rails environment is not running in test mode!" - exit -end +abort("Abort testing: Your Rails environment is not running in test mode!") unless Rails.env.test? require 'test/unit' require 'active_support/core_ext/kernel/requires' |