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 | 450ba359be716249f3647c59c2675e8cc01ab07b (patch) | |
| tree | 40c6fa37f697148c70f5ad18b5e3a024b82c7ad7 /test | |
| parent | a32505d6c95f3af4871b2ead9a6e5309a35f4838 (diff) | |
| download | ruby-450ba359be716249f3647c59c2675e8cc01ab07b.tar.gz ruby-450ba359be716249f3647c59c2675e8cc01ab07b.tar.xz ruby-450ba359be716249f3647c59c2675e8cc01ab07b.zip | |
* 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: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@5460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
| -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 e92ec62b8..ed1270cf3 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 # |
