зеркало из https://github.com/github/ruby.git
* test/logger/test_logger.rb: Module#constants returns an array of Symbols.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
0f064d27b3
Коммит
f9b894273f
|
@ -6,7 +6,7 @@ require 'tempfile'
|
|||
class TestLoggerSeverity < Test::Unit::TestCase
|
||||
def test_enum
|
||||
logger_levels = Logger.constants
|
||||
levels = ["WARN", "UNKNOWN", "INFO", "FATAL", "DEBUG", "ERROR"]
|
||||
levels = [:WARN, :UNKNOWN, :INFO, :FATAL, :DEBUG, :ERROR]
|
||||
Logger::Severity.constants.each do |level|
|
||||
assert(levels.include?(level))
|
||||
assert(logger_levels.include?(level))
|
||||
|
|
Загрузка…
Ссылка в новой задаче