From 70b849546871610513bf587ecb7aebcaa8e20773 Mon Sep 17 00:00:00 2001 From: Joao Carlos Date: Sun, 28 Feb 2010 15:05:03 +0000 Subject: Better with #abort MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: José Valim --- railties/lib/rails/test_help.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'railties') 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' -- cgit v1.2.3