diff options
| author | Mike Naberezny | 2014-02-10 15:31:30 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2014-02-10 19:41:30 -0800 |
| commit | 48f5653441a884eedcc63d2879a9c6a5daefeca9 (patch) | |
| tree | 8867c624281029e9d82a39682de4aa3f05a3d3df /Library | |
| parent | b2087f9ef71d8af9210a0930f13ca9a9e0aaa5cd (diff) | |
| download | homebrew-48f5653441a884eedcc63d2879a9c6a5daefeca9.tar.bz2 | |
cowsay: add test
Closes #26593.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/cowsay.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Library/Formula/cowsay.rb b/Library/Formula/cowsay.rb index 2376b9994..4085897ee 100644 --- a/Library/Formula/cowsay.rb +++ b/Library/Formula/cowsay.rb @@ -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 |
