From 1f13103fdea2e06ce25e025fdb351d27869a59bd Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Wed, 16 Oct 2013 07:59:43 +0100 Subject: git-cal: improve test. --- Library/Formula/git-cal.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Library/Formula/git-cal.rb') 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 -- cgit v1.2.3