diff options
-rw-r--r-- | ChangeLog | 13 | ||||
-rw-r--r-- | test/logger/test_logger.rb | 2 |
2 files changed, 14 insertions, 1 deletions
@@ -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 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 # |