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