aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
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