* 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
This commit is contained in:
mame 2010-06-28 13:16:17 +00:00
parent 82f7a98236
commit 5b5c6378c7
2 changed files with 11 additions and 3 deletions

View File

@ -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

View File

@ -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