Skip to content

Commit fec1ab2

Browse files
committed
Use runnable command as DUMMY_PAGER
1 parent fd94dce commit fec1ab2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/rdoc/test_rdoc_ri_driver.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,12 @@ def teardown
3838
super
3939
end
4040

41-
DUMMY_PAGER = ":;\n"
41+
case RUBY_PLATFORM
42+
when /mswin|mingw/
43+
DUMMY_PAGER = "type nul"
44+
else
45+
DUMMY_PAGER = "true"
46+
end
4247

4348
def with_dummy_pager
4449
pager_env, ENV['RI_PAGER'] = ENV['RI_PAGER'], DUMMY_PAGER

0 commit comments

Comments
 (0)