yadm: use assert_predicate instead of File.exist?
This commit is contained in:
parent
cf951c7715
commit
fb77ffa93e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue