mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[rubygems/rubygems] Removed deprecated methods for Minitest5
It was migrated on ruby core repository too.e5db3da9d3
848bbe3c76
This commit is contained in:
parent
e29c94e86b
commit
7050f86ae1
Notes:
git
2020-05-08 07:39:31 +09:00
1 changed files with 0 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue