Skip to content

Commit 905184f

Browse files
authored
Cleanup irbrc generator cache always at teardown (#968)
1 parent 3512020 commit 905184f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/irb/test_init.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,6 @@ def setup
274274
@original_irbrc = ENV["IRBRC"]
275275
# To prevent the test from using the user's .irbrc file
276276
ENV["HOME"] = @home = Dir.mktmpdir
277-
IRB.instance_variable_set(:@existing_rc_name_generators, nil)
278277
super
279278
end
280279

@@ -284,6 +283,7 @@ def teardown
284283
ENV["HOME"] = @original_home
285284
File.unlink(@irbrc)
286285
Dir.rmdir(@home)
286+
IRB.instance_variable_set(:@existing_rc_name_generators, nil)
287287
end
288288

289289
def test_irb_name_converts_non_string_values_to_string

0 commit comments

Comments
 (0)