From 7050f86ae16c957d662afc0e1b3e15369816cce9 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Mon, 30 Mar 2020 21:38:24 +0900 Subject: [rubygems/rubygems] Removed deprecated methods for Minitest5 It was migrated on ruby core repository too. https://github.com/ruby/ruby/commit/e5db3da9d34f0a7595208863301c044b612adbed https://github.com/rubygems/rubygems/commit/848bbe3c76 --- lib/rubygems/test_case.rb | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'lib') diff --git a/lib/rubygems/test_case.rb b/lib/rubygems/test_case.rb index a767869ca0..b5c377f43a 100644 --- a/lib/rubygems/test_case.rb +++ b/lib/rubygems/test_case.rb @@ -127,11 +127,6 @@ class Gem::TestCase < Minitest::Test assert_equal expected.sort, loaded.sort if expected end - def assert_path_exists(path, msg = nil) - msg = message(msg) { "Expected path '#{path}' to exist" } - assert File.exist?(path), msg - end - def assert_directory_exists(path, msg = nil) msg = message(msg) { "Expected path '#{path}' to be a directory" } assert_path_exists path @@ -225,11 +220,6 @@ class Gem::TestCase < Minitest::Test end end - def refute_path_exists(path, msg = nil) - msg = message(msg) { "Expected path '#{path}' to not exist" } - refute File.exist?(path), msg - end - def scan_make_command_lines(output) output.scan(/^#{Regexp.escape make_command}(?:[[:blank:]].*)?$/) end -- cgit v1.2.3