From 124be0aaaa0c22d39eeebb85078e342d0174b35a Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sat, 3 Feb 2024 15:46:21 +0900 Subject: [ruby/irb] Consume the warning for non-existent history path Fix https://github.com/ruby/irb/pull/852#issuecomment-1925170358 https://github.com/ruby/irb/commit/9a7e060e57 --- test/irb/test_history.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/irb/test_history.rb b/test/irb/test_history.rb index 2c762ae466..e6448ada37 100644 --- a/test/irb/test_history.rb +++ b/test/irb/test_history.rb @@ -173,7 +173,7 @@ module TestIRB IRB.conf[:HISTORY_FILE] = "fake/fake/fake/history_file" io = TestInputMethodWithRelineHistory.new - assert_nothing_raised do + assert_warn(/history file does not exist/) do io.save_history end ensure -- cgit v1.2.3