ruby-changes:66146
From: Hiroshi <ko1@a...>
Date: Tue, 11 May 2021 20:08:21 +0900 (JST)
Subject: [ruby-changes:66146] 010bb0883e (master): Workaround for make test-tool
https://git.ruby-lang.org/ruby.git/commit/?id=010bb0883e From 010bb0883e67f9f4c8e609266e22c0a12163549a Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA <hsbt@r...> Date: Tue, 11 May 2021 20:08:03 +0900 Subject: Workaround for make test-tool --- tool/lib/minitest/unit.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tool/lib/minitest/unit.rb b/tool/lib/minitest/unit.rb index 252ca70..6097dc3 100644 --- a/tool/lib/minitest/unit.rb +++ b/tool/lib/minitest/unit.rb @@ -452,12 +452,14 @@ module MiniTest https://github.com/ruby/ruby/blob/trunk/tool/lib/minitest/unit.rb#L452 msg = message(msg) { "Expected path '#{path}' to exist" } assert File.exist?(path), msg end + alias assert_path_exist assert_path_exists alias refute_path_not_exist assert_path_exists def refute_path_exists(path, msg = nil) msg = message(msg) { "Expected path '#{path}' to not exist" } refute File.exist?(path), msg end + alias refute_path_exist refute_path_exists alias assert_path_not_exist refute_path_exists ## -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/