summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-01-13 09:58:53 +0000
committernahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-01-13 09:58:53 +0000
commit450ba359be716249f3647c59c2675e8cc01ab07b (patch)
tree40c6fa37f697148c70f5ad18b5e3a024b82c7ad7
parenta32505d6c95f3af4871b2ead9a6e5309a35f4838 (diff)
downloadruby-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
-rw-r--r--ChangeLog13
-rw-r--r--test/logger/test_logger.rb2
2 files changed, 14 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index cfc064207..34b5510b7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+Tue Jan 13 18:54:28 2004 NAKAMURA, Hiroshi <nakahiro@sarion.co.jp>
+
+ * 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.
+
Tue Jan 13 14:27:13 2004 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
* lib/test/unit/ui/testrunnerutilities.rb (TestRunnerUtilities):
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
#