diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/surfraw.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Library/Formula/surfraw.rb b/Library/Formula/surfraw.rb index 866e3e8da..70454204e 100644 --- a/Library/Formula/surfraw.rb +++ b/Library/Formula/surfraw.rb @@ -1,5 +1,3 @@ -require "formula" - class Surfraw < Formula homepage "http://surfraw.alioth.debian.org/" head "git://git.debian.org/surfraw/surfraw.git" @@ -15,4 +13,9 @@ class Surfraw < Formula ENV.j1 system "make", "install" end + + test do + output = shell_output("#{bin}/surfraw -p google -results=1 homebrew") + assert_equal "http://www.google.com/search?q=homebrew&num=1\n", output + end end |
