diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2021-05-11 19:32:03 +0900 |
---|---|---|
committer | nagachika <nagachika@ruby-lang.org> | 2021-07-07 10:03:15 +0900 |
commit | 152397e495650dc5d55b85796a4272c3b52e0b15 (patch) | |
tree | 56e7fd334e6793387bbf9f26a72ee150d521f62e /tool | |
parent | bf0e7095dc75516e61d077f70ee8733ecb54faa6 (diff) |
Alias assert/refute_path_exists for test-unit gem.
It's required at https://github.com/rubygems/rubygems/pull/3141
Diffstat (limited to 'tool')
-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 f70762e5d5..c885ae90e4 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: |