git-cal: don't lean on HOMEBREW_REPOSITORY
This commit is contained in:
parent
2a23d4ea84
commit
c68070a711
1 changed files with 5 additions and 4 deletions
|
@ -21,9 +21,10 @@ class GitCal < Formula
|
||||||
end
|
end
|
||||||
|
|
||||||
test do
|
test do
|
||||||
# git-cal fails when run outside of a git repo.
|
system "git", "init"
|
||||||
HOMEBREW_REPOSITORY.cd do
|
(testpath/"Hello").write "Hello World!"
|
||||||
system "#{bin}/git-cal"
|
system "git", "add", "Hello"
|
||||||
end
|
system "git", "commit", "-a", "-m", "Initial Commit"
|
||||||
|
system bin/"git-cal"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue