summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2024-02-03 15:46:21 +0900
committergit <svn-admin@ruby-lang.org>2024-02-03 06:54:35 +0000
commit124be0aaaa0c22d39eeebb85078e342d0174b35a (patch)
tree32f0711424060a8c045a0fbc1ec57d6729ff3396 /test
parent0854d648629c951ee2fe59dbc1e47a3624dae5de (diff)
[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
Diffstat (limited to 'test')
-rw-r--r--test/irb/test_history.rb2
1 files changed, 1 insertions, 1 deletions
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