[前][次][番号順一覧][スレッド一覧]

ruby-changes:73564

From: Nobuyoshi <ko1@a...>
Date: Thu, 15 Sep 2022 08:26:10 +0900 (JST)
Subject: [ruby-changes:73564] 752ae81ed1 (master): [ruby/irb] Refine assertion for failures

https://git.ruby-lang.org/ruby.git/commit/?id=752ae81ed1

From 752ae81ed168444380d265ebefcb3101ef68d890 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Thu, 15 Sep 2022 01:33:17 +0900
Subject: [ruby/irb] Refine assertion for failures

https://github.com/ruby/irb/commit/fd047512b3
---
 test/irb/test_history.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 https://github.com/ruby/ruby/blob/trunk/test/irb/test_history.rb#L170
         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)
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]