class GitQuickStats < Formula desc "Simple and efficient way to access statistics in git" homepage "https://github.com/arzzen/git-quick-stats" url "https://github.com/arzzen/git-quick-stats/archive/1.0.15.tar.gz" sha256 "a2420a0fb67969f36df239eb12e11c5b0d429f06c8dbca7c8b5e31e293df6645" bottle :unneeded def install bin.install "git-quick-stats" end test do system "git", "init" assert_match "All branches (sorted by most recent commit)", shell_output("#{bin}/git-quick-stats branchesByDate") assert_match /^Invalid argument/, shell_output("#{bin}/git-quick-stats command", 1) end end