diff options
| author | Mike McQuaid | 2014-02-02 09:36:25 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2014-02-02 09:36:25 +0000 |
| commit | 461c8ba6a7a8a57d3224845a30ea38e5da050105 (patch) | |
| tree | 5b047c60b94e13d7897b5277223bb4feef0310cf /Library/Formula/stgit.rb | |
| parent | 5e13ec1fec35438a30ce322c25fecb6b5735ffb6 (diff) | |
| download | homebrew-461c8ba6a7a8a57d3224845a30ea38e5da050105.tar.bz2 | |
stgit: add test.
Diffstat (limited to 'Library/Formula/stgit.rb')
| -rw-r--r-- | Library/Formula/stgit.rb | 9 |
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 |
