oauth2l 1.0.1 (new formula)

Update test to match failed output

Closes #46082.

Signed-off-by: Rui Chen <rchen@meetup.com>
This commit is contained in:
Seth Vargo 2019-11-01 14:37:18 -04:00 committed by Rui Chen
parent f18987b490
commit c4715b444f

21
Formula/oauth2l.rb Normal file
View file

@ -0,0 +1,21 @@
class Oauth2l < Formula
desc "Simple CLI for interacting with Google oauth tokens"
homepage "https://github.com/google/oauth2l"
url "https://github.com/google/oauth2l/archive/v1.0.1.tar.gz"
sha256 "8207bb796727019b277f63c709fa4e399f2d40c223633d0df6c74dc1f3c9385f"
head "https://github.com/google/oauth2l.git"
depends_on "go" => :build
def install
ENV["GO111MODULE"] = "on"
system "go", "build", "-o", "oauth2l"
bin.install "oauth2l"
end
test do
assert_match "Invalid Value",
shell_output("#{bin}/oauth2l info abcd1234")
end
end