aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBaptiste Fontaine2015-01-13 15:09:02 +0100
committerMike McQuaid2015-01-13 15:00:29 +0000
commitfc19abff6d9b596896300e2d66b6ad595ce50a30 (patch)
tree77379fb873db112c522d991ef5825eb7b918e884
parent7e8ecf3762ecfd1251061f70684e782482814fd7 (diff)
downloadhomebrew-fc19abff6d9b596896300e2d66b6ad595ce50a30.tar.bz2
surfraw: test added
Closes #35821. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
-rw-r--r--Library/Formula/surfraw.rb7
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