diff options
| -rw-r--r-- | Library/Formula/htop-osx.rb | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/Library/Formula/htop-osx.rb b/Library/Formula/htop-osx.rb index 591648db2..9d1bd3af9 100644 --- a/Library/Formula/htop-osx.rb +++ b/Library/Formula/htop-osx.rb @@ -1,9 +1,7 @@ -require 'formula' - class HtopOsx < Formula - homepage 'https://github.com/max-horvath/htop-osx' - url 'https://github.com/max-horvath/htop-osx/archive/0.8.2.2.tar.gz' - sha1 '17c56fe5efe81cf6b0f4c13a958fa7e4d8591b23' + homepage "https://github.com/max-horvath/htop-osx" + url "https://github.com/max-horvath/htop-osx/archive/0.8.2.2.tar.gz" + sha1 "17c56fe5efe81cf6b0f4c13a958fa7e4d8591b23" bottle do revision 1 @@ -35,4 +33,10 @@ class HtopOsx < Formula You should be certain that you trust any software you grant root privileges. EOS end + + test do + ENV["TERM"] = "xterm" + pipe_output("#{bin}/htop", "q") + assert $?.success? + end end |
