go@1.6: use assert_predicate instead of File.exist?

This commit is contained in:
ilovezfs 2017-10-06 03:23:23 -07:00
parent 62716d0578
commit 9c8951197a

View file

@ -107,7 +107,7 @@ class GoAT16 < Formula
assert_equal "Hello World\n", shell_output("#{bin}/go run hello.go")
if build.with? "godoc"
assert File.exist?(libexec/"bin/godoc")
assert_predicate libexec/"bin/godoc", :exist?
assert File.executable?(libexec/"bin/godoc")
end
end