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