diff --git a/test/irb/test_history.rb b/test/irb/test_history.rb index 2c762ae46..e6448ada3 100644 --- a/test/irb/test_history.rb +++ b/test/irb/test_history.rb @@ -173,7 +173,7 @@ def test_history_does_not_raise_when_history_file_directory_does_not_exist 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