mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
#exit accepts an integer, not a string
Signed-off-by: José Valim <jose.valim@gmail.com>
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user