Skip to content

Commit 47aa567

Browse files
committed
Prevent RI Driver test from loading ~/.rdoc
On ruby 1.8 this will fail as the ri data contains references to Encoding which is not present.
1 parent 9d4a4fe commit 47aa567

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/test_rdoc_ri_driver.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -939,7 +939,10 @@ def test_formatter
939939
tty = Object.new
940940
def tty.tty?() true; end
941941

942-
driver = RDoc::RI::Driver.new
942+
@options.delete :use_stdout
943+
@options.delete :formatter
944+
945+
driver = RDoc::RI::Driver.new @options
943946

944947
assert_instance_of @RM::ToAnsi, driver.formatter(tty)
945948

0 commit comments

Comments
 (0)