cowsay: add test

Closes Homebrew/homebrew#26593.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
master
Mike Naberezny 2014-02-10 15:31:30 -08:00 committed by Adam Vandenberg
parent 4f3502783d
commit 116073d13d
1 changed files with 7 additions and 0 deletions

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