diff options
author | Joao Carlos <mail@joao-carlos.com> | 2010-02-24 18:41:02 +0000 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-02-28 12:29:01 +0100 |
commit | 020fdb28ee1d1bdb2dd1aa182869eb2e7c6115cb (patch) | |
tree | 88cb2a68669337d36228a876caa0334db0b9232d | |
parent | f3839b2b9996f84be6599e940a38e43237f35367 (diff) | |
download | rails-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>
-rw-r--r-- | 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 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' |