From fc19abff6d9b596896300e2d66b6ad595ce50a30 Mon Sep 17 00:00:00 2001 From: Baptiste Fontaine Date: Tue, 13 Jan 2015 15:09:02 +0100 Subject: surfraw: test added Closes #35821. Signed-off-by: Mike McQuaid --- Library/Formula/surfraw.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Library/Formula') 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 -- cgit v1.2.3