diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-06-28 13:16:17 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-06-28 13:16:17 +0000 |
commit | 5b5c6378c7758af3b264972250f715c054ed0a37 (patch) | |
tree | a082035d03df2f87cf7cfd0fff287654ecc586e6 | |
parent | 82f7a9823642a46ca021794de5efc9c9c894d0e7 (diff) | |
download | ruby-5b5c6378c7758af3b264972250f715c054ed0a37.tar.gz |
* test/rdoc/test_rdoc_ri_driver.rb (TestRDocRIDriver#test_formatter):
fix a test accordingly to r28455.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | test/rdoc/test_rdoc_ri_driver.rb | 9 |
2 files changed, 11 insertions, 3 deletions
@@ -1,3 +1,8 @@ +Mon Jun 28 22:14:22 2010 Yusuke Endoh <mame@tsg.ne.jp> + + * test/rdoc/test_rdoc_ri_driver.rb (TestRDocRIDriver#test_formatter): + fix a test accordingly to r28455. + Mon Jun 28 21:56:14 2010 Yusuke Endoh <mame@tsg.ne.jp> * thread.c (rb_fd_resize, rb_fd_copy): avoid NULL dereference upon diff --git a/test/rdoc/test_rdoc_ri_driver.rb b/test/rdoc/test_rdoc_ri_driver.rb index 51f2576cb4..8d64916088 100644 --- a/test/rdoc/test_rdoc_ri_driver.rb +++ b/test/rdoc/test_rdoc_ri_driver.rb @@ -498,15 +498,18 @@ Foo::Bar#bother def test_formatter driver = RDoc::RI::Driver.new - assert_instance_of @RM::ToAnsi, driver.formatter + io = Object.new + def io.tty?; true; end + + assert_instance_of @RM::ToAnsi, driver.formatter(io) driver.instance_variable_set :@paging, true - assert_instance_of @RM::ToBs, driver.formatter + assert_instance_of @RM::ToBs, driver.formatter(io) driver.instance_variable_set :@formatter_klass, @RM::ToHtml - assert_instance_of @RM::ToHtml, driver.formatter + assert_instance_of @RM::ToHtml, driver.formatter(io) end def test_method_type |