aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMike McQuaid2014-02-02 09:36:25 +0000
committerMike McQuaid2014-02-02 09:36:25 +0000
commit461c8ba6a7a8a57d3224845a30ea38e5da050105 (patch)
tree5b047c60b94e13d7897b5277223bb4feef0310cf /Library/Formula
parent5e13ec1fec35438a30ce322c25fecb6b5735ffb6 (diff)
downloadhomebrew-461c8ba6a7a8a57d3224845a30ea38e5da050105.tar.bz2
stgit: add test.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/stgit.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/Library/Formula/stgit.rb b/Library/Formula/stgit.rb
index 5a81878db..1be1c1000 100644
--- a/Library/Formula/stgit.rb
+++ b/Library/Formula/stgit.rb
@@ -14,4 +14,13 @@ class Stgit < Formula
system "make", "prefix=#{prefix}", "all"
system "make", "prefix=#{prefix}", "install"
end
+
+ test do
+ system "git", "init"
+ (testpath/"test").write "test"
+ system "git", "add", "test"
+ system "git", "commit", "--message", "Initial commit", "test"
+ system "#{bin}/stg", "init"
+ system "#{bin}/stg", "log"
+ end
end