mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
parent
ae2e8d364f
commit
752ae81ed1
1 changed files with 1 additions and 1 deletions
|
@ -170,7 +170,7 @@ module TestIRB
|
||||||
io.class::HISTORY.concat(%w"line1 line2")
|
io.class::HISTORY.concat(%w"line1 line2")
|
||||||
|
|
||||||
history_file = IRB.rc_file("_history")
|
history_file = IRB.rc_file("_history")
|
||||||
assert !File.file?(history_file)
|
assert_not_send [File, :file?, history_file]
|
||||||
File.write(history_file, "line0\n")
|
File.write(history_file, "line0\n")
|
||||||
io.save_history
|
io.save_history
|
||||||
assert_equal(%w"line0 line1 line2", File.read(history_file).split)
|
assert_equal(%w"line0 line1 line2", File.read(history_file).split)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue