From b2b37c6ee029b5d31106217f8ed2f5a195d8697e Mon Sep 17 00:00:00 2001 From: Mike Naberezny Date: Sun, 9 Feb 2014 11:01:33 -0800 Subject: [PATCH] psgrep: add test Closes Homebrew/homebrew#26552. Signed-off-by: Mike McQuaid --- Formula/psgrep.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Formula/psgrep.rb b/Formula/psgrep.rb index 8abb8544cc..82ab9490df 100644 --- a/Formula/psgrep.rb +++ b/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