git-hooks: don't lean on HOMEBREW_REPOSITORY
This commit is contained in:
parent
c68070a711
commit
f8ecf91b4c
1 changed files with 3 additions and 4 deletions
|
@ -20,9 +20,8 @@ class GitHooks < Formula
|
|||
end
|
||||
|
||||
test do
|
||||
HOMEBREW_REPOSITORY.cd do
|
||||
output = shell_output("git hooks").strip
|
||||
assert_match(/Listing User, Project, and Global hooks/, output)
|
||||
end
|
||||
system "git", "init"
|
||||
output = shell_output("git hooks").strip
|
||||
assert_match "Listing User, Project, and Global hooks", output
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue