mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
20 lines
410 B
Ruby
20 lines
410 B
Ruby
require "requirements/gpg2_requirement"
|
|
require "fileutils"
|
|
|
|
describe GPG2Requirement do
|
|
let(:dir) { mktmpdir }
|
|
|
|
describe "#satisfied?" do
|
|
it "returns true if GPG2 is installed" do
|
|
ENV["PATH"] = dir/"bin"
|
|
(dir/"bin/gpg").write <<-EOS.undent
|
|
#!/bin/bash
|
|
echo 2.0.30
|
|
EOS
|
|
FileUtils.chmod 0755, dir/"bin/gpg"
|
|
|
|
expect(subject).to be_satisfied
|
|
end
|
|
end
|
|
end
|