fex: test added

Closes Homebrew/homebrew#36854.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Baptiste Fontaine 2015-02-16 12:01:54 +01:00 committed by Mike McQuaid
parent 0d543a6fc7
commit 7fe4a62093

View file

@ -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