[ruby/irb] Refine assertion for failures

https://github.com/ruby/irb/commit/fd047512b3
This commit is contained in:
Nobuyoshi Nakada 2022-09-15 01:33:17 +09:00 committed by git
parent ae2e8d364f
commit 752ae81ed1

View File

@ -170,7 +170,7 @@ module TestIRB
io.class::HISTORY.concat(%w"line1 line2")
history_file = IRB.rc_file("_history")
assert !File.file?(history_file)
assert_not_send [File, :file?, history_file]
File.write(history_file, "line0\n")
io.save_history
assert_equal(%w"line0 line1 line2", File.read(history_file).split)