Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

legit: test added #37697

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
21 changes: 14 additions & 7 deletions Library/Formula/legit.rb
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
require 'formula'

class Legit < Formula
homepage 'http://www.git-legit.org/'
url 'https://github.com/downloads/kennethreitz/legit/legit-v0.1.0-darwin-x86.tar.bz2'
version '0.1.0'
sha1 'a2cdfb59ab949f14f23784cf6861a50da923f71b'
homepage "http://www.git-legit.org/"
url "https://github.com/downloads/kennethreitz/legit/legit-v0.1.0-darwin-x86.tar.bz2"
version "0.1.0"
sha256 "9b25a4c8e12d6703627ba24f4547a7d4350ca1ef9fa44415512b1bcc57b06506"

def install
bin.install 'legit'
bin.install "legit"
end

test do
system "git", "init"
touch "foo"
system "git", "add", "foo"
system "git", "commit", "-m", "init"
system "#{bin}/legit", "sprout", "test"
assert_match(/test/, shell_output("#{bin}/legit branches"))
end
end