* 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:
parent
82f7a98236
commit
5b5c6378c7
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user