#exit accepts an integer, not a string
Signed-off-by: José Valim <jose.valim@gmail.com>
This commit is contained in:
parent
f3839b2b99
commit
020fdb28ee
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue