From e4b279ed793ce911755ffafc4422df97dc5d8780 Mon Sep 17 00:00:00 2001 From: Dominyk Tiller Date: Thu, 6 Apr 2017 14:42:03 +0100 Subject: [PATCH] pinentry-mac: add test --- Formula/pinentry-mac.rb | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Formula/pinentry-mac.rb b/Formula/pinentry-mac.rb index 21f5ae1cd0c..8cc5dc40738 100644 --- a/Formula/pinentry-mac.rb +++ b/Formula/pinentry-mac.rb @@ -1,13 +1,10 @@ class PinentryMac < Formula desc "Pinentry for GPG on Mac" homepage "https://github.com/GPGTools/pinentry-mac" + url "https://github.com/GPGTools/pinentry-mac/archive/v0.9.4.tar.gz" + sha256 "037ebb010377d3a3879ae2a832cefc4513f5c397d7d887d7b86b4e5d9a628271" head "https://github.com/GPGTools/pinentry-mac.git" - stable do - url "https://github.com/GPGTools/pinentry-mac/archive/v0.9.4.tar.gz" - sha256 "037ebb010377d3a3879ae2a832cefc4513f5c397d7d887d7b86b4e5d9a628271" - end - bottle do cellar :any_skip_relocation sha256 "3da6a88abbd4bb04eb2455d8e6998f4fc4db77c3f765d52b7eadf364e82aeaa7" => :sierra @@ -32,4 +29,8 @@ class PinentryMac < Formula pinentry-program #{HOMEBREW_PREFIX}/bin/pinentry-mac EOS end + + test do + assert_match version.to_s, shell_output("#{bin}/pinentry-mac --version") + end end