From 7ea26779ab3d41f050febdccfb2583a0160cda1d Mon Sep 17 00:00:00 2001 From: mame Date: Sun, 11 Jul 2010 02:09:09 +0000 Subject: * 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 --- test/rdoc/test_rdoc_ri_driver.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/rdoc/test_rdoc_ri_driver.rb') 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) -- cgit v1.2.3