class GitFixup < Formula homepage "https://github.com/keis/git-fixup" url "https://github.com/keis/git-fixup/archive/v1.0.1.tar.gz" sha1 "0c2f2dd1f6543e537291c0f9e0e06905725b0ccc" head "https://github.com/keis/git-fixup.git", :branch => "master" bottle do cellar :any sha1 "51111ec8f5f517ea73a5c465dd5ce1b066bbc1f0" => :yosemite sha1 "3d018cad30af595c34cb2a9eaa5457d6665abf09" => :mavericks sha1 "324a7f422f26e2a84cb587b2005a0da36c3d08f7" => :mountain_lion end def install system "make", "PREFIX=#{prefix}", "install" zsh_completion.install "completion.zsh" => "_git-fixup" end test do system "git", "init" (testpath/"test").write "foo" system "git", "add", "test" system "git", "commit", "--message", "Initial commit" (testpath/"test").delete (testpath/"test").write "bar" system "git", "add", "test" system "git", "fixup" end end