git-hooks: don't lean on HOMEBREW_REPOSITORY

This commit is contained in:
Dominyk Tiller 2016-07-15 15:17:43 +01:00
parent c68070a711
commit f8ecf91b4c
No known key found for this signature in database
GPG key ID: FE19AEFCF658C6F6

View file

@ -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