summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2021-05-11 20:08:03 +0900
committernagachika <nagachika@ruby-lang.org>2021-07-07 10:03:15 +0900
commitfd5e314ecc238a73ca70418c9dc7bce1c8141a50 (patch)
tree68d165b5543bdfe1120a935939914a3e53e1b151 /tool
parent596a99ac7faf4e7cc25fedb2b17fa49918323d56 (diff)
Workaround for make test-tool
Diffstat (limited to 'tool')
-rw-r--r--tool/lib/minitest/unit.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/tool/lib/minitest/unit.rb b/tool/lib/minitest/unit.rb
index 01e396ea24..9f07313e1b 100644
--- a/tool/lib/minitest/unit.rb
+++ b/tool/lib/minitest/unit.rb
@@ -452,12 +452,14 @@ module MiniTest
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
##