diff options
author | tomoya ishida <tomoyapenguin@gmail.com> | 2023-09-18 06:25:46 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-09-17 21:25:49 +0000 |
commit | 8b4e54f9792769efd69028d19eb631cdf5fc60d9 (patch) | |
tree | a293c25d1f0a03b8c2a2641599751d1e45527ac7 /test/irb | |
parent | 88262875fded2fc578e5bf6957dbf75068238538 (diff) | |
download | ruby-8b4e54f9792769efd69028d19eb631cdf5fc60d9.tar.gz |
[ruby/irb] Test should not depend on user's irbrc file specified by
ENV['IRBRC']
(https://github.com/ruby/irb/pull/717)
https://github.com/ruby/irb/commit/1d2d35dd33
Diffstat (limited to 'test/irb')
-rw-r--r-- | test/irb/helper.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/irb/helper.rb b/test/irb/helper.rb index 9002453bb8..ede48be649 100644 --- a/test/irb/helper.rb +++ b/test/irb/helper.rb @@ -113,6 +113,7 @@ module TestIRB # Test should not depend on user's irbrc file @envs["HOME"] ||= tmp_dir @envs["XDG_CONFIG_HOME"] ||= tmp_dir + @envs["IRBRC"] = nil unless @envs.key?("IRBRC") PTY.spawn(@envs.merge("TERM" => "dumb"), *cmd) do |read, write, pid| Timeout.timeout(TIMEOUT_SEC) do |