summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-09-15 01:33:17 +0900
committergit <svn-admin@ruby-lang.org>2022-09-15 08:25:53 +0900
commit752ae81ed168444380d265ebefcb3101ef68d890 (patch)
tree8e71a5ad851a1c845cfda65cd70b4fe14682d719 /test
parentae2e8d364f685d4034f04900e0e3ad53cecc0e05 (diff)
[ruby/irb] Refine assertion for failures
https://github.com/ruby/irb/commit/fd047512b3
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 98d24f0880..206970714a 100644
--- a/test/irb/test_history.rb
+++ b/test/irb/test_history.rb
@@ -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)