Skip to content

Commit

Permalink
Test should not depend on user's irbrc file specified by ENV['IRBRC'] (
Browse files Browse the repository at this point in the history
  • Loading branch information
tompng authored Sep 17, 2023
1 parent 02703c4 commit 1d2d35d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/irb/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1d2d35d

Please sign in to comment.