1
0
Fork 0
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:
gotoyuzo 2007-12-24 14:35:41 +00:00
parent 0f064d27b3
commit f9b894273f

View file

@ -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))