diff options
author | aycabta <aycabta@gmail.com> | 2021-01-14 06:22:56 +0900 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2021-01-18 02:08:41 +0900 |
commit | 9279d3f2556435190a74f3bdaa5ee887299366b1 (patch) | |
tree | 1b6f2e66b167bbdb335e9f97cea59df80c37e799 | |
parent | 1aba1a510304410a43bd51506b403534349f9341 (diff) | |
download | ruby-9279d3f2556435190a74f3bdaa5ee887299366b1.tar.gz |
[ruby/reline] Tests with yamatanooroti don't need chdir
Because of chdir, log files ware created in temporary directries on Windows.
https://github.com/ruby/reline/commit/200b469a68
-rw-r--r-- | test/reline/yamatanooroti/test_rendering.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/test/reline/yamatanooroti/test_rendering.rb b/test/reline/yamatanooroti/test_rendering.rb index f4a5919b6c..389d65a55a 100644 --- a/test/reline/yamatanooroti/test_rendering.rb +++ b/test/reline/yamatanooroti/test_rendering.rb @@ -14,14 +14,12 @@ begin FileUtils.rm_rf(@tmpdir) Dir.mkdir(@tmpdir) end - Dir.chdir(@tmpdir) @inputrc_backup = ENV['INPUTRC'] @inputrc_file = ENV['INPUTRC'] = File.join(@tmpdir, 'temporaty_inputrc') File.unlink(@inputrc_file) if File.exist?(@inputrc_file) end def teardown - Dir.chdir(@pwd) FileUtils.rm_rf(@tmpdir) ENV['INPUTRC'] = @inputrc_backup ENV.delete('RELINE_TEST_PROMPT') if ENV['RELINE_TEST_PROMPT'] |