Skip to content
Snippets Groups Projects
Unverified Commit 13dcdb30 authored by Dominyk Tiller's avatar Dominyk Tiller
Browse files

test_gpg2_requirement: add satisfied test

parent e02ad224
No related branches found
No related tags found
No related merge requests found
require "testing_env"
require "requirements/gpg2_requirement"
require "fileutils"
class GPG2RequirementTests < Homebrew::TestCase
def setup
@dir = Pathname.new(mktmpdir)
(@dir/"bin/gpg").write <<-EOS.undent
#!/bin/bash
echo 2.0.30
EOS
FileUtils.chmod 0755, @dir/"bin/gpg"
end
def teardown
FileUtils.rm_rf @dir
end
def test_satisfied
with_environment("PATH" => @dir/"bin") do
assert_predicate GPG2Requirement.new, :satisfied?
end
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment