#exit accepts an integer, not a string

Signed-off-by: José Valim <jose.valim@gmail.com>
This commit is contained in:
Joao Carlos 2010-02-24 18:41:02 +00:00 committed by José Valim
parent f3839b2b99
commit 020fdb28ee
1 changed files with 4 additions and 1 deletions

View File

@ -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'