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

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

View file

@ -99,7 +99,7 @@ class GoAT15 < 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