1
0
Fork 0
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:
Nobuyoshi Nakada 2022-06-06 21:19:24 +09:00 committed by git
parent ba38318827
commit 66a9e452bb

View file

@ -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