diff options
author | Nobuyoshi Nakada <[email protected]> | 2022-06-04 16:14:26 +0900 |
---|---|---|
committer | git <[email protected]> | 2022-06-04 16:42:10 +0900 |
commit | 9a7be959b1bf9a43e3436246a29db3a4d0f3f352 (patch) | |
tree | c5b87443fcf6fce8dd89b86957cb1b27c79a8791 /test/rdoc/test_rdoc_ri_driver.rb | |
parent | d4c7e4d5bb96a3b04b6e64a0e358be4381531827 (diff) |
[ruby/rdoc] Remove `RDoc::RI::Driver#in_path?`
https://github.com/ruby/rdoc/commit/83051403d6
Diffstat (limited to 'test/rdoc/test_rdoc_ri_driver.rb')
-rw-r--r-- | test/rdoc/test_rdoc_ri_driver.rb | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/test/rdoc/test_rdoc_ri_driver.rb b/test/rdoc/test_rdoc_ri_driver.rb index 18f92d0168..c23fe63130 100644 --- a/test/rdoc/test_rdoc_ri_driver.rb +++ b/test/rdoc/test_rdoc_ri_driver.rb @@ -1091,23 +1091,6 @@ Foo::Bar#bother assert_instance_of @RM::ToBs, driver.formatter(StringIO.new) end - def test_in_path_eh - path = ENV['PATH'] - - test_path = File.expand_path '..', __FILE__ - - temp_dir do |dir| - nonexistent = File.join dir, 'nonexistent' - refute @driver.in_path?(nonexistent) - - ENV['PATH'] = test_path - - assert @driver.in_path?(File.basename(__FILE__)) - end - ensure - ENV['PATH'] = path - end - def test_method_type assert_equal :both, @driver.method_type(nil) assert_equal :both, @driver.method_type('.') |