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:
parent
f3839b2b99
commit
020fdb28ee
1 changed files with 4 additions and 1 deletions
|
@ -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 a new issue