aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/gvp.rb
diff options
context:
space:
mode:
authorMike Naberezny2014-05-21 13:45:29 -0700
committerAdam Vandenberg2014-05-21 14:17:41 -0700
commit76c9d7c5cc4ec707e6a9d41de4baea77323b4d92 (patch)
treefb2ab52b32e3d13d9eaa161c560dea6e25d70872 /Library/Formula/gvp.rb
parentc53c160da1c35bc9a5991d31588b6339750c8d29 (diff)
downloadhomebrew-76c9d7c5cc4ec707e6a9d41de4baea77323b4d92.tar.bz2
gvp: use full path of executable
Closes #29466. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/gvp.rb')
-rw-r--r--Library/Formula/gvp.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/Library/Formula/gvp.rb b/Library/Formula/gvp.rb
index 5a4a5797b..5e1769bae 100644
--- a/Library/Formula/gvp.rb
+++ b/Library/Formula/gvp.rb
@@ -18,10 +18,10 @@ class Gvp < Formula
end
test do
- assert Kernel.system("gvp init"), "`gvp init` exited with a non-zero status"
+ assert Kernel.system("#{bin}/gvp init"), "`gvp init` exited with a non-zero status"
assert File.directory?(".godeps"), "`gvp init` did not create the .godeps directory"
- assert_equal `gvp in 'echo $GOPATH' | grep -v '>> Local GOPATH set.'`.chomp, "#{testpath}/.godeps:#{testpath}", "`gvp in` did not change the GOPATH"
- assert_equal `gvp in 'echo $GOBIN' | grep -v '>> Local GOPATH set.'`.chomp, "#{testpath}/.godeps/bin:#{ENV["GOBIN"]}", "`gvp in` did not change the GOBIN"
- assert_equal `gvp in 'echo $PATH' | grep -v '>> Local GOPATH set.'`.chomp, "#{testpath}/.godeps/bin:#{ENV["PATH"]}", "`gvp in` did not change the PATH"
+ assert_equal `#{bin}/gvp in 'echo $GOPATH' | grep -v '>> Local GOPATH set.'`.chomp, "#{testpath}/.godeps:#{testpath}", "`gvp in` did not change the GOPATH"
+ assert_equal `#{bin}/gvp in 'echo $GOBIN' | grep -v '>> Local GOPATH set.'`.chomp, "#{testpath}/.godeps/bin:#{ENV["GOBIN"]}", "`gvp in` did not change the GOBIN"
+ assert_equal `#{bin}/gvp in 'echo $PATH' | grep -v '>> Local GOPATH set.'`.chomp, "#{testpath}/.godeps/bin:#{ENV["PATH"]}", "`gvp in` did not change the PATH"
end
end