From cdfd2395570fd7810302f8da1992bf708300a8a9 Mon Sep 17 00:00:00 2001 From: Baptiste Fontaine Date: Mon, 6 Apr 2015 23:13:49 +0200 Subject: since: test added Closes #38418. Signed-off-by: Tim D. Smith --- Library/Formula/since.rb | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/Library/Formula/since.rb b/Library/Formula/since.rb index 0329392d2..a12df2296 100644 --- a/Library/Formula/since.rb +++ b/Library/Formula/since.rb @@ -1,13 +1,20 @@ -require 'formula' - class Since < Formula - homepage 'http://welz.org.za/projects/since' - url 'http://welz.org.za/projects/since/since-1.1.tar.gz' - sha1 '67f07e8237d63f846cd8ca60b5a16fc32d4f81a5' + homepage "http://welz.org.za/projects/since" + url "http://welz.org.za/projects/since/since-1.1.tar.gz" + sha256 "739b7f161f8a045c1dff184e0fc319417c5e2deb3c7339d323d4065f7a3d0f45" def install - system "make" - bin.install "since" - man1.install "since.1" + bin.mkpath + man1.mkpath + system "make", "install", "prefix=#{prefix}", "INSTALL=install" + end + + test do + (testpath/"test").write <<-EOS.undent + foo + bar + EOS + system "#{bin}/since", "-z", "test" + assert File.exist? ".since" end end -- cgit v1.2.3