Skip to content

Commit 124be0a

Browse files
nobumatzbot
authored andcommitted
[ruby/irb] Consume the warning for non-existent history path
Fix ruby/irb#852 (comment) ruby/irb@9a7e060e57
1 parent 0854d64 commit 124be0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/irb/test_history.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def test_history_does_not_raise_when_history_file_directory_does_not_exist
173173
IRB.conf[:HISTORY_FILE] = "fake/fake/fake/history_file"
174174
io = TestInputMethodWithRelineHistory.new
175175

176-
assert_nothing_raised do
176+
assert_warn(/history file does not exist/) do
177177
io.save_history
178178
end
179179
ensure

0 commit comments

Comments
 (0)