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:
parent
bb8a759f6b
commit
010bb0883e
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
||||
##
|
||||
|
|
Loading…
Reference in a new issue