diff options
| author | Mike McQuaid | 2013-10-16 07:59:43 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2013-10-16 08:00:17 +0100 |
| commit | 1f13103fdea2e06ce25e025fdb351d27869a59bd (patch) | |
| tree | 5e4f0884c937d451e2287b8b504fb392d78c441d /Library/Formula/git-cal.rb | |
| parent | 29745d36117667c430ab03f753528dbf1f9a93ba (diff) | |
| download | homebrew-1f13103fdea2e06ce25e025fdb351d27869a59bd.tar.bz2 | |
git-cal: improve test.
Diffstat (limited to 'Library/Formula/git-cal.rb')
| -rw-r--r-- | Library/Formula/git-cal.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Library/Formula/git-cal.rb b/Library/Formula/git-cal.rb index a0aec4a7c..98f66ba15 100644 --- a/Library/Formula/git-cal.rb +++ b/Library/Formula/git-cal.rb @@ -10,8 +10,9 @@ class GitCal < Formula end test do - # git-cal fails when run outside of a git repo, so - # switch to #{bin} before testing it. - system "cd #{bin}; #{bin}/git-cal" + # git-cal fails when run outside of a git repo. + HOMEBREW_REPOSITORY.cd do + system "#{bin}/git-cal" + end end end |
