1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

#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

View file

@ -1,6 +1,9 @@
# Make double-sure the RAILS_ENV is set to test, # Make double-sure the RAILS_ENV is set to test,
# so fixtures are loaded to the right database # 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 'test/unit'
require 'active_support/core_ext/kernel/requires' require 'active_support/core_ext/kernel/requires'