summaryrefslogtreecommitdiffstats
path: root/test/logger
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-11-18 07:18:29 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-11-18 07:18:29 +0000
commitd0a123470507dbaaef48f43af13a429625aa0b87 (patch)
treefffe40cd50ba2332d1db2ea4eb7c22aaa35711cf /test/logger
parent0f52ce451b8c62eaa365093d1aee3ccd61e034eb (diff)
downloadruby-d0a123470507dbaaef48f43af13a429625aa0b87.tar.gz
ruby-d0a123470507dbaaef48f43af13a429625aa0b87.tar.xz
ruby-d0a123470507dbaaef48f43af13a429625aa0b87.zip
* lib/logger.rb (ProgName): fixed for svn, based on a patch from
Nobuhiro IMAI at [ruby-dev:37108]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/logger')
-rw-r--r--test/logger/test_logger.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/logger/test_logger.rb b/test/logger/test_logger.rb
index c7d553c41..a6c132d0f 100644
--- a/test/logger/test_logger.rb
+++ b/test/logger/test_logger.rb
@@ -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)