aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib
diff options
context:
space:
mode:
authorJoao Carlos <mail@joao-carlos.com>2010-02-24 18:41:02 +0000
committerJosé Valim <jose.valim@gmail.com>2010-02-28 12:29:01 +0100
commit020fdb28ee1d1bdb2dd1aa182869eb2e7c6115cb (patch)
tree88cb2a68669337d36228a876caa0334db0b9232d /railties/lib
parentf3839b2b9996f84be6599e940a38e43237f35367 (diff)
downloadrails-020fdb28ee1d1bdb2dd1aa182869eb2e7c6115cb.tar.gz
rails-020fdb28ee1d1bdb2dd1aa182869eb2e7c6115cb.tar.bz2
rails-020fdb28ee1d1bdb2dd1aa182869eb2e7c6115cb.zip
#exit accepts an integer, not a string
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'railties/lib')
-rw-r--r--railties/lib/rails/test_help.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/railties/lib/rails/test_help.rb b/railties/lib/rails/test_help.rb
index 06270f6c43..c6d67bfc19 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'