diff options
author | Nobuyoshi Nakada <[email protected]> | 2022-06-06 21:19:24 +0900 |
---|---|---|
committer | git <[email protected]> | 2022-06-06 21:19:45 +0900 |
commit | 66a9e452bbbb69e5a653d078839b222b92034cb6 (patch) | |
tree | cf739043bc93e30653518c0fe805311e105dec02 /test/rdoc/test_rdoc_ri_driver.rb | |
parent | ba383188279cd30abbb826f45af775fed3266221 (diff) |
[ruby/rdoc] Use runnable command as DUMMY_PAGER
https://github.com/ruby/rdoc/commit/fec1ab2e41
Diffstat (limited to 'test/rdoc/test_rdoc_ri_driver.rb')
-rw-r--r-- | test/rdoc/test_rdoc_ri_driver.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/rdoc/test_rdoc_ri_driver.rb b/test/rdoc/test_rdoc_ri_driver.rb index c23fe63130..fc15c25cea 100644 --- a/test/rdoc/test_rdoc_ri_driver.rb +++ b/test/rdoc/test_rdoc_ri_driver.rb @@ -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 |