summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2020-03-30 21:38:24 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-05-08 07:38:50 +0900
commit7050f86ae16c957d662afc0e1b3e15369816cce9 (patch)
tree20ae2b74cc29e4b10908313c4ee47398bea20a84 /lib
parente29c94e86b4b8cce4438099efd00473b880677e8 (diff)
[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
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3087
Diffstat (limited to 'lib')
-rw-r--r--lib/rubygems/test_case.rb10
1 files changed, 0 insertions, 10 deletions
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