aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorJoao Carlos <mail@joao-carlos.com>2010-02-28 15:05:03 +0000
committerJosé Valim <jose.valim@gmail.com>2010-03-03 10:12:42 +0100
commit70b849546871610513bf587ecb7aebcaa8e20773 (patch)
tree5d33e04c1baa90b3bf1b91e14422310c23c645b5 /railties
parentf36a380c07186782a7c9e2c3d169b325ee8ab6dc (diff)
downloadrails-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.rb5
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'