Skip to content

Commit

Permalink
Test should not depend on user's irbrc file (#714)
Browse files Browse the repository at this point in the history
  • Loading branch information
tompng authored Sep 16, 2023
1 parent 1681ada commit 02703c4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/irb/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ def run_ruby_file(&block)

yield

# Test should not depend on user's irbrc file
@envs["HOME"] ||= tmp_dir
@envs["XDG_CONFIG_HOME"] ||= tmp_dir

PTY.spawn(@envs.merge("TERM" => "dumb"), *cmd) do |read, write, pid|
Timeout.timeout(TIMEOUT_SEC) do
while line = safe_gets(read)
Expand Down

0 comments on commit 02703c4

Please sign in to comment.