psgrep: add test

Closes Homebrew/homebrew#26552.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Mike Naberezny 2014-02-09 11:01:33 -08:00 committed by Mike McQuaid
parent c7718a2170
commit b2b37c6ee0

View file

@ -11,4 +11,10 @@ class Psgrep < Formula
bin.install "psgrep"
man1.install "psgrep.1"
end
test do
output = `#{bin}/psgrep #{Process.pid}`
assert output.include?($0)
assert_equal 0, $?.exitstatus
end
end