Bug #3428 ยป rdoc_ansi_esc_test.diff
test/rdoc/test_rdoc_ri_driver.rb 2010-07-10 17:23:17.000000000 -0700 | ||
---|---|---|
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)
|