Workaround for make test-tool
This commit is contained in:
parent
bb8a759f6b
commit
010bb0883e
@ -452,12 +452,14 @@ module MiniTest
|
|||||||
msg = message(msg) { "Expected path '#{path}' to exist" }
|
msg = message(msg) { "Expected path '#{path}' to exist" }
|
||||||
assert File.exist?(path), msg
|
assert File.exist?(path), msg
|
||||||
end
|
end
|
||||||
|
alias assert_path_exist assert_path_exists
|
||||||
alias refute_path_not_exist assert_path_exists
|
alias refute_path_not_exist assert_path_exists
|
||||||
|
|
||||||
def refute_path_exists(path, msg = nil)
|
def refute_path_exists(path, msg = nil)
|
||||||
msg = message(msg) { "Expected path '#{path}' to not exist" }
|
msg = message(msg) { "Expected path '#{path}' to not exist" }
|
||||||
refute File.exist?(path), msg
|
refute File.exist?(path), msg
|
||||||
end
|
end
|
||||||
|
alias refute_path_exist refute_path_exists
|
||||||
alias assert_path_not_exist refute_path_exists
|
alias assert_path_not_exist refute_path_exists
|
||||||
|
|
||||||
##
|
##
|
||||||
|
Loading…
x
Reference in New Issue
Block a user