From 461c8ba6a7a8a57d3224845a30ea38e5da050105 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sun, 2 Feb 2014 09:36:25 +0000 Subject: stgit: add test. --- Library/Formula/stgit.rb | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Library/Formula/stgit.rb') 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 -- cgit v1.2.3