diff options
author | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-01-13 09:58:53 +0000 |
---|---|---|
committer | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-01-13 09:58:53 +0000 |
commit | 0ff4feb6a532ba7b485c2fbc1643c18c8b35af3d (patch) | |
tree | 40c6fa37f697148c70f5ad18b5e3a024b82c7ad7 /test/logger | |
parent | af1b000b87cd2c647a69b721266a4995e3202710 (diff) |
* lib/logger.rb(Logger#msg2str): no special treatment for the object
which responds to :to_str. commited at 2004-01-11T21:46:27 by
gsinclair.
* lib/logger.rb(LogDevice#initialize): remove type checking if the
given object is a String. Kernel.open handles it correctly.
commited at 2004-01-11T21:46:27 by gsinclair.
* test/logger/test_logger.rb: follow above change (ArgumentError ->
TypeError.) follow above commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/logger')
-rw-r--r-- | test/logger/test_logger.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/logger/test_logger.rb b/test/logger/test_logger.rb index e92ec62b80..ed1270cf39 100644 --- a/test/logger/test_logger.rb +++ b/test/logger/test_logger.rb @@ -236,7 +236,7 @@ class TestLogDevice < Test::Unit::TestCase logdev = d(STDERR) assert_equal(STDERR, logdev.dev) assert_nil(logdev.filename) - assert_raises(ArgumentError) do + assert_raises(TypeError) do d(nil) end # |