aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike McQuaid2014-12-02 14:30:14 +0000
committerMike McQuaid2014-12-02 14:30:32 +0000
commit9b99f15e62799d3ad5fd017f7fd2dffee10456cb (patch)
tree9f79cba4df295fa790eaf46688a2c8888ccc4155
parent33b772b253258d5fea45d02f5fac39c954c3e257 (diff)
downloadhomebrew-9b99f15e62799d3ad5fd017f7fd2dffee10456cb.tar.bz2
git-review: cleanup system usage.
-rw-r--r--Library/Formula/git-review.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/Library/Formula/git-review.rb b/Library/Formula/git-review.rb
index 564818e1d..0b5e9676f 100644
--- a/Library/Formula/git-review.rb
+++ b/Library/Formula/git-review.rb
@@ -35,12 +35,12 @@ class GitReview < Formula
end
test do
- system "git init"
- system "git remote add gerrit https://github.com/Homebrew/homebrew.github.io"
- (testpath/".git/hooks/commit-msg").write("# empty - make git-review happy")
- (testpath/"foo").write("test file")
- system "git add foo"
- system "git commit -m \"test\""
+ system "git", "init"
+ system "git", "remote", "add", "gerrit", "https://github.com/Homebrew/homebrew.github.io"
+ (testpath/".git/hooks/commit-msg").write "# empty - make git-review happy"
+ (testpath/"foo").write "test file"
+ system "git", "add", "foo"
+ system "git", "commit", "-m", "test"
system "#{bin}/git-review", "--dry-run"
end
end