aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike Naberezny2014-02-09 11:01:33 -0800
committerMike McQuaid2014-02-09 21:20:32 +0000
commiteeb39fc0bc28f0275edfa99642f7e45467b5368c (patch)
tree9819f0c6061b3cfa9c70dcde83e3dd0f1e6c35bb /Library
parent46154a679492b1b5a88175a229782570152aa6f9 (diff)
downloadhomebrew-eeb39fc0bc28f0275edfa99642f7e45467b5368c.tar.bz2
psgrep: add test
Closes #26552. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/psgrep.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Formula/psgrep.rb b/Library/Formula/psgrep.rb
index 8abb8544c..82ab9490d 100644
--- a/Library/Formula/psgrep.rb
+++ b/Library/Formula/psgrep.rb
@@ -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