ruby-changes:66144
From: Hiroshi <ko1@a...>
Date: Tue, 11 May 2021 19:32:55 +0900 (JST)
Subject: [ruby-changes:66144] c6a11b865e (master): Alias assert/refute_path_exists for test-unit gem.
https://git.ruby-lang.org/ruby.git/commit/?id=c6a11b865e From c6a11b865e1f9085c88fe169a1f47680383580c2 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA <hsbt@r...> Date: Tue, 11 May 2021 19:32:03 +0900 Subject: Alias assert/refute_path_exists for test-unit gem. It's required at https://github.com/rubygems/rubygems/pull/3141 --- tool/lib/minitest/unit.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tool/lib/minitest/unit.rb b/tool/lib/minitest/unit.rb index ddd7cfe..dad3eff 100644 --- a/tool/lib/minitest/unit.rb +++ b/tool/lib/minitest/unit.rb @@ -452,11 +452,13 @@ module MiniTest https://github.com/ruby/ruby/blob/trunk/tool/lib/minitest/unit.rb#L452 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: -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/