From 7fe4a62093f439b479d07102d7e679be2ddc53d9 Mon Sep 17 00:00:00 2001 From: Baptiste Fontaine Date: Mon, 16 Feb 2015 12:01:54 +0100 Subject: [PATCH] fex: test added Closes Homebrew/homebrew#36854. Signed-off-by: Mike McQuaid --- Formula/fex.rb | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Formula/fex.rb b/Formula/fex.rb index 1c787e968b..352ad94008 100644 --- a/Formula/fex.rb +++ b/Formula/fex.rb @@ -1,12 +1,13 @@ -require 'formula' - class Fex < Formula - homepage 'http://www.semicomplete.com/projects/fex/' - url 'https://semicomplete.googlecode.com/files/fex-2.0.0.tar.gz' - sha1 '014938009ffe0b2ec3d1293154a22e4a40fee4a9' + homepage "http://www.semicomplete.com/projects/fex/" + url "https://semicomplete.googlecode.com/files/fex-2.0.0.tar.gz" + sha1 "014938009ffe0b2ec3d1293154a22e4a40fee4a9" def install - ENV['PREFIX'] = prefix - system "make install" + system "make", "install", "PREFIX=#{prefix}" + end + + test do + assert_equal "foo", pipe_output("#{bin}/fex 1", "foo bar", 0).chomp end end