From 71d32eb462bdc6e0f9abe4245a56575292c43bb2 Mon Sep 17 00:00:00 2001 From: Baptiste Fontaine Date: Mon, 16 Feb 2015 12:01:54 +0100 Subject: fex: test added Closes #36854. Signed-off-by: Mike McQuaid --- Library/Formula/fex.rb | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'Library') diff --git a/Library/Formula/fex.rb b/Library/Formula/fex.rb index 1c787e968..352ad9400 100644 --- a/Library/Formula/fex.rb +++ b/Library/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 -- cgit v1.2.3