We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af8ef29 commit 7d60349Copy full SHA for 7d60349
1 file changed
test/irb/test_init.rb
@@ -273,7 +273,7 @@ def setup
273
@original_home = ENV["HOME"]
274
@original_irbrc = ENV["IRBRC"]
275
# To prevent the test from using the user's .irbrc file
276
- ENV["HOME"] = Dir.mktmpdir
+ ENV["HOME"] = @home = Dir.mktmpdir
277
IRB.instance_variable_set(:@existing_rc_name_generators, nil)
278
super
279
end
@@ -283,6 +283,7 @@ def teardown
283
ENV["IRBRC"] = @original_irbrc
284
ENV["HOME"] = @original_home
285
File.unlink(@irbrc)
286
+ Dir.rmdir(@home)
287
288
289
def test_irb_name_converts_non_string_values_to_string
0 commit comments