mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
parent
ba38318827
commit
66a9e452bb
1 changed files with 6 additions and 1 deletions
|
@ -38,7 +38,12 @@ class TestRDocRIDriver < RDoc::TestCase
|
||||||
super
|
super
|
||||||
end
|
end
|
||||||
|
|
||||||
DUMMY_PAGER = ":;\n"
|
case RUBY_PLATFORM
|
||||||
|
when /mswin|mingw/
|
||||||
|
DUMMY_PAGER = "type nul"
|
||||||
|
else
|
||||||
|
DUMMY_PAGER = "true"
|
||||||
|
end
|
||||||
|
|
||||||
def with_dummy_pager
|
def with_dummy_pager
|
||||||
pager_env, ENV['RI_PAGER'] = ENV['RI_PAGER'], DUMMY_PAGER
|
pager_env, ENV['RI_PAGER'] = ENV['RI_PAGER'], DUMMY_PAGER
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue