From 843063a01e08fa9e7f63966097bd6f81af98b4c2 Mon Sep 17 00:00:00 2001 From: Baptiste Fontaine Date: Wed, 29 Apr 2015 00:13:31 +0200 Subject: [PATCH] repl: test added Closes Homebrew/homebrew#39157. Signed-off-by: Mike McQuaid --- Formula/repl.rb | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/Formula/repl.rb b/Formula/repl.rb index 24e8e81ceb..ecdf793751 100644 --- a/Formula/repl.rb +++ b/Formula/repl.rb @@ -1,14 +1,16 @@ -require 'formula' - class Repl < Formula - homepage 'https://github.com/defunkt/repl' - url 'https://github.com/defunkt/repl/archive/v1.0.0.tar.gz' - sha1 'd47d31856a0c474daf54707d1575b45f01ef5cda' + homepage "https://github.com/defunkt/repl" + url "https://github.com/defunkt/repl/archive/v1.0.0.tar.gz" + sha256 "d0542404f03159b0d6eb22a1aa4a509714c87c8594fca5121c578d50d950307d" - depends_on 'rlwrap' => :optional + depends_on "rlwrap" => :optional def install - bin.install 'bin/repl' - man1.install 'man/repl.1' + bin.install "bin/repl" + man1.install "man/repl.1" + end + + test do + pipe_output("#{bin}/repl git", "init", 0) end end