diff options
| author | Mike Naberezny | 2014-02-09 11:01:33 -0800 |
|---|---|---|
| committer | Mike McQuaid | 2014-02-09 21:20:32 +0000 |
| commit | eeb39fc0bc28f0275edfa99642f7e45467b5368c (patch) | |
| tree | 9819f0c6061b3cfa9c70dcde83e3dd0f1e6c35bb /Library/Formula | |
| parent | 46154a679492b1b5a88175a229782570152aa6f9 (diff) | |
| download | homebrew-eeb39fc0bc28f0275edfa99642f7e45467b5368c.tar.bz2 | |
psgrep: add test
Closes #26552.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/psgrep.rb | 6 |
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 |
