diff options
author | Hiroshi SHIBATA <[email protected]> | 2021-05-11 19:32:03 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2021-05-11 19:32:35 +0900 |
commit | c6a11b865e1f9085c88fe169a1f47680383580c2 (patch) | |
tree | 06862931a9a552f5f2c58bee29d2c139be0cb6b1 | |
parent | c45f7556b5555114cdaabaa852abb836878c8c6c (diff) |
Alias assert/refute_path_exists for test-unit gem.
It's required at https://github.com/rubygems/rubygems/pull/3141
-rw-r--r-- | tool/lib/minitest/unit.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tool/lib/minitest/unit.rb b/tool/lib/minitest/unit.rb index ddd7cfe74d..dad3eff991 100644 --- a/tool/lib/minitest/unit.rb +++ b/tool/lib/minitest/unit.rb @@ -452,11 +452,13 @@ module MiniTest msg = message(msg) { "Expected path '#{path}' to exist" } assert File.exist?(path), msg end + alias assert_path_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 assert_path_not_exist refute_path_exists ## # Captures $stdout and $stderr into strings: |