mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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:
parent
0f064d27b3
commit
f9b894273f
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue