1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/logger.rb (ProgName): fixed for svn, based on a patch from

Nobuhiro IMAI at [ruby-dev:37108].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2008-11-18 07:18:29 +00:00
parent 9d2ecf3d90
commit b7ac5b1262
3 changed files with 11 additions and 2 deletions

View file

@ -23,6 +23,10 @@ class TestLogger < Test::Unit::TestCase
@logger = Logger.new(nil)
end
def test_const_progname
assert %r!\Alogger\.rb/\S+\z! === Logger::ProgName
end
class Log
attr_reader :label, :datetime, :pid, :severity, :progname, :msg
def initialize(line)