Skip to content

Commit

Permalink
Clean up tmpdir
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed May 12, 2024
1 parent af8ef29 commit 7d60349
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/irb/test_init.rb
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def setup
@original_home = ENV["HOME"]
@original_irbrc = ENV["IRBRC"]
# To prevent the test from using the user's .irbrc file
ENV["HOME"] = Dir.mktmpdir
ENV["HOME"] = @home = Dir.mktmpdir
IRB.instance_variable_set(:@existing_rc_name_generators, nil)
super
end
Expand All @@ -283,6 +283,7 @@ def teardown
ENV["IRBRC"] = @original_irbrc
ENV["HOME"] = @original_home
File.unlink(@irbrc)
Dir.rmdir(@home)
end

def test_irb_name_converts_non_string_values_to_string
Expand Down

0 comments on commit 7d60349

Please sign in to comment.