1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fix the missing locale error

This commit is contained in:
Hiroshi SHIBATA 2022-09-21 10:46:35 +09:00
parent 1ad1f07306
commit d6e84d97fe
Notes: git 2022-09-21 14:26:04 +09:00

View file

@ -161,6 +161,7 @@ module TestIRB
def test_history_concurrent_use_not_present
backup_home = ENV["HOME"]
backup_xdg_config_home = ENV.delete("XDG_CONFIG_HOME")
IRB.conf[:LC_MESSAGES] = IRB::Locale.new
IRB.conf[:SAVE_HISTORY] = 1
Dir.mktmpdir("test_irb_history_") do |tmpdir|
ENV["HOME"] = tmpdir