1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Workaround for make test-tool

This commit is contained in:
Hiroshi SHIBATA 2021-05-11 20:08:03 +09:00
parent bb8a759f6b
commit 010bb0883e
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2

View file

@ -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
##