gitfs: use assert_predicate instead of File.exist?

This commit is contained in:
ilovezfs 2017-10-06 02:08:05 -07:00
parent 1f8ad215e2
commit 5d39b8f02d

View file

@ -68,7 +68,7 @@ class Gitfs < Formula
EOS
system "python", "test.py"
assert File.exist?("testing/.git/config")
assert_predicate testpath/"testing/.git/config", :exist?
cd "testing" do
system "git", "remote", "add", "homebrew", "https://github.com/Homebrew/homebrew.git"
assert_match "homebrew", shell_output("git remote")