summaryrefslogtreecommitdiff
path: root/test/rdoc/test_rdoc_store.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2022-12-23 10:46:25 +0900
committerNobuyoshi Nakada <[email protected]>2022-12-23 11:05:09 +0900
commit792c50e917c6f7a7ed0f3ca8c64b47c005593b41 (patch)
tree1db2cfe21ce93b10239f601d06916fb4947c88e2 /test/rdoc/test_rdoc_store.rb
parentdef8ad4072dfdf2c267b31e72a7f7fb7b9472dd2 (diff)
[ruby/rdoc] Clean up home directories for each test
https://github.com/ruby/rdoc/commit/f067c174da
Diffstat (limited to 'test/rdoc/test_rdoc_store.rb')
-rw-r--r--test/rdoc/test_rdoc_store.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/rdoc/test_rdoc_store.rb b/test/rdoc/test_rdoc_store.rb
index aa4db4c65e..8350d257b3 100644
--- a/test/rdoc/test_rdoc_store.rb
+++ b/test/rdoc/test_rdoc_store.rb
@@ -319,8 +319,7 @@ class TestRDocStore < XrefTestCase
end
def test_friendly_path
- @orig_xdg_data_home = ENV['XDG_DATA_HOME']
- ENV.delete('XDG_DATA_HOME')
+ @orig_xdg_data_home = ENV.delete('XDG_DATA_HOME')
@s.path = @tmpdir
@s.type = nil