From ebbb1d48ceb5efe9861c2b2ee9525085f89fde85 Mon Sep 17 00:00:00 2001 From: Joao Carlos Date: Wed, 24 Feb 2010 18:41:02 +0000 Subject: [PATCH] #exit accepts an integer, not a string --- railties/lib/rails/test_help.rb | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/railties/lib/rails/test_help.rb b/railties/lib/rails/test_help.rb index f9aa018..96ac7a0 100644 --- a/railties/lib/rails/test_help.rb +++ b/railties/lib/rails/test_help.rb @@ -1,6 +1,9 @@ # Make double-sure the RAILS_ENV is set to test, # so fixtures are loaded to the right database -exit("Abort testing: Your Rails environment is not running in test mode!") unless Rails.env.test? +unless Rails.env.test? + puts "Abort testing: Your Rails environment is not running in test mode!" + exit +end require 'test/unit' require 'active_support/core_ext/kernel/requires' -- 1.6.6