diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-07-11 02:09:09 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-07-11 02:09:09 +0000 |
commit | 7ea26779ab3d41f050febdccfb2583a0160cda1d (patch) | |
tree | fdc0e5f237760c79c9204cb120d58002db05e8d8 /test/rdoc | |
parent | d06a6b22f59012399236597101dafbba7a884f70 (diff) | |
download | ruby-7ea26779ab3d41f050febdccfb2583a0160cda1d.tar.gz |
* 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
Diffstat (limited to 'test/rdoc')
-rw-r--r-- | test/rdoc/test_rdoc_ri_driver.rb | 4 |
1 files changed, 4 insertions, 0 deletions
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) |