git-cal: don't lean on HOMEBREW_REPOSITORY

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

View file

@ -21,9 +21,10 @@ class GitCal < Formula
end
test do
# git-cal fails when run outside of a git repo.
HOMEBREW_REPOSITORY.cd do
system "#{bin}/git-cal"
end
system "git", "init"
(testpath/"Hello").write "Hello World!"
system "git", "add", "Hello"
system "git", "commit", "-a", "-m", "Initial Commit"
system bin/"git-cal"
end
end