class Bar < Formula desc "Provide progress bars for shell scripts" homepage "http://www.theiling.de/projects/bar.html" url "http://www.theiling.de/downloads/bar-1.4-src.tar.bz2" sha1 "00b55ca1d52ca6ed099937692697c2257833c73c" def install bin.install "bar" end test do (testpath/"test1").write "pumpkin" (testpath/"test2").write "latte" assert_match /latte/, shell_output("#{bin}/bar test1 test2") end end