Skip to content

Commit

Permalink
dateutils: add test
Browse files Browse the repository at this point in the history
Closes Homebrew/legacy-homebrew#35421.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
  • Loading branch information
xu-cheng authored and MikeMcQuaid committed Jan 1, 2015
1 parent aa24407 commit 2410942
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Formula/dateutils.rb
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
require 'formula'

class Dateutils < Formula
homepage 'http://www.fresse.org/dateutils/'
url 'https://bitbucket.org/hroptatyr/dateutils/downloads/dateutils-0.2.5.tar.xz'
sha1 '47f2ba469daff7586d47473f54a77848b724ba45'
homepage "http://www.fresse.org/dateutils/"
url "https://bitbucket.org/hroptatyr/dateutils/downloads/dateutils-0.2.5.tar.xz"
sha1 "47f2ba469daff7586d47473f54a77848b724ba45"

def install
system "./configure", "--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}"
system "make", "install"
end

test do
assert_equal "2012-03-01-00", shell_output("#{bin}/dconv 2012-03-04 -f \"%Y-%m-%c-%w\"").strip
end
end

0 comments on commit 2410942

Please sign in to comment.