yadm: use assert_predicate instead of File.exist?

This commit is contained in:
ilovezfs 2017-10-06 02:47:50 -07:00
parent cf951c7715
commit fb77ffa93e

View file

@ -14,7 +14,7 @@ class Yadm < Formula
test do
system bin/"yadm", "init"
assert File.exist?(testpath/".yadm/repo.git/config"), "Failed to init repository."
assert_predicate testpath/".yadm/repo.git/config", :exist?, "Failed to init repository."
assert_match testpath.to_s, shell_output("#{bin}/yadm gitconfig core.worktree")
# disable auto-alt