From a04c8b3b93bcb953834be676dde1ce24c5c7e244 Mon Sep 17 00:00:00 2001 From: Baptiste Fontaine Date: Tue, 6 Jan 2015 10:16:20 +0100 Subject: yeti: test added Closes #35595. Signed-off-by: Mike McQuaid --- Library/Formula/yeti.rb | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'Library') diff --git a/Library/Formula/yeti.rb b/Library/Formula/yeti.rb index eb4e89372..2665eb1d7 100644 --- a/Library/Formula/yeti.rb +++ b/Library/Formula/yeti.rb @@ -1,17 +1,20 @@ -require 'formula' - class Yeti < Formula - homepage 'http://mth.github.io/yeti/' - url 'https://github.com/mth/yeti/archive/v0.9.9.tar.gz' - sha1 'd4b3fee9e9e1c117f1a73b147695a24a217c2658' + homepage "https://mth.github.io/yeti/" + url "https://github.com/mth/yeti/archive/v0.9.9.tar.gz" + sha1 "d4b3fee9e9e1c117f1a73b147695a24a217c2658" - head 'https://github.com/mth/yeti.git' + head "https://github.com/mth/yeti.git" depends_on :ant => :build + depends_on :java => "1.7" def install - system "ant jar" + system "ant", "jar" libexec.install "yeti.jar" bin.write_jar_script libexec/"yeti.jar", "yeti", "-server" end + + test do + assert_equal "3\n", shell_output("#{bin}/yeti -e 'do x: x+1 done 2'") + end end -- cgit v1.2.3