cowsay: add test

Closes Homebrew/homebrew#26593.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Mike Naberezny 2014-02-10 15:31:30 -08:00 committed by Adam Vandenberg
parent 4f3502783d
commit 116073d13d

View file

@ -12,4 +12,11 @@ class Cowsay < Formula
system "/bin/sh", "install.sh", prefix
mv prefix/'man', share
end
test do
output = `#{bin}/cowsay moo`
assert output.include?("moo") # bubble
assert output.include?("^__^") # cow
assert_equal 0, $?.exitstatus
end
end