From 7ea26779ab3d41f050febdccfb2583a0160cda1d Mon Sep 17 00:00:00 2001 From: mame Date: Sun, 11 Jul 2010 02:09:09 +0000 Subject: [PATCH] * test/rdoc/test_rdoc_ri_driver.rb (test_formatter): add a test. a patch from caleb clausen in [ruby-core:31182]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ test/rdoc/test_rdoc_ri_driver.rb | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 290ea80f5f..4f10a73620 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sun Jul 11 11:07:42 2010 Yusuke Endoh + + * test/rdoc/test_rdoc_ri_driver.rb (test_formatter): add a test. a + patch from caleb clausen in [ruby-core:31182]. + Sat Jul 10 21:43:11 2010 Tanaka Akira * strftime.c (rb_strftime_with_timespec): fix precision handling for diff --git a/test/rdoc/test_rdoc_ri_driver.rb b/test/rdoc/test_rdoc_ri_driver.rb index 8d64916088..9ff89077b6 100644 --- a/test/rdoc/test_rdoc_ri_driver.rb +++ b/test/rdoc/test_rdoc_ri_driver.rb @@ -499,6 +499,10 @@ Foo::Bar#bother driver = RDoc::RI::Driver.new io = Object.new + def io.tty?; false; end + + assert_instance_of @RM::ToBs, driver.formatter(io) + def io.tty?; true; end assert_instance_of @RM::ToAnsi, driver.formatter(io)