Skip to content

Commit

Permalink
minitest 5.13 provides these assertions by default
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez committed Mar 27, 2020
1 parent f2cc5d7 commit ae5b4e2
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions lib/rubygems/test_case.rb
Expand Up @@ -127,12 +127,6 @@ def assert_activate(expected, *specs)
assert_equal expected.sort, loaded.sort if expected
end

# TODO: move to minitest
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
Expand Down Expand Up @@ -226,12 +220,6 @@ def exeext(value)
end
end

# TODO: move to minitest
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
Expand Down

0 comments on commit ae5b4e2

Please sign in to comment.