diff --git a/test/irb/helper.rb b/test/irb/helper.rb index 9002453bb..ede48be64 100644 --- a/test/irb/helper.rb +++ b/test/irb/helper.rb @@ -113,6 +113,7 @@ def run_ruby_file(&block) # 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