diff options
| author | Mike Naberezny | 2014-05-20 08:51:29 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2014-05-20 09:04:30 -0700 |
| commit | 220d9102f9a3eb1ca755a8973369bed956fcb228 (patch) | |
| tree | 02a55080bd77ed8a9df5b1bde7b0e9eb413baf92 /Library/Formula | |
| parent | a02517851d6b1ed464cf4b1a64ed2283867ddd07 (diff) | |
| download | homebrew-220d9102f9a3eb1ca755a8973369bed956fcb228.tar.bz2 | |
gpm: use full path of executable, use assertion to test output
Closes #29428.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/gpm.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Library/Formula/gpm.rb b/Library/Formula/gpm.rb index 21a5a5a46..18309c0af 100644 --- a/Library/Formula/gpm.rb +++ b/Library/Formula/gpm.rb @@ -33,7 +33,7 @@ class Gpm < Formula Pathname("Godeps").write "github.com/pote/gpm-testing-package v6.1" ENV["GOPATH"] = testpath - system "gpm", "install" + system bin/"gpm", "install" Pathname("go_code.go").write <<-EOS.undent package main @@ -47,6 +47,9 @@ class Gpm < Formula fmt.Print(gpm_testing_package.Version()) } EOS - `go run go_code.go` == "v6.1" + + out = `go run go_code.go` + assert_equal "v6.1", out + assert_equal 0, $?.exitstatus end end |
