From 76aaa35f873ef976fcf7d63f44ae1e74ea27abee Mon Sep 17 00:00:00 2001 From: Baptiste Fontaine Date: Sun, 5 Apr 2015 22:03:39 +0200 Subject: smartypants: test added Closes #38395. Signed-off-by: Xu Cheng --- Library/Formula/smartypants.rb | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/smartypants.rb b/Library/Formula/smartypants.rb index f6bef9b3d..f795260ef 100644 --- a/Library/Formula/smartypants.rb +++ b/Library/Formula/smartypants.rb @@ -1,11 +1,15 @@ -require 'formula' - class Smartypants < Formula - homepage 'http://daringfireball.net/projects/smartypants/' - url 'http://daringfireball.net/projects/downloads/SmartyPants_1.5.1.zip' - sha1 '339a493f89cfee1e9f051bb1b39f9dcae4c595ca' + homepage "http://daringfireball.net/projects/smartypants/" + url "http://daringfireball.net/projects/downloads/SmartyPants_1.5.1.zip" + sha256 "2813a12d8dd23f091399195edd7965e130103e439e2a14f298b75b253616d531" def install - bin.install 'SmartyPants.pl' => 'smartypants' + bin.install "SmartyPants.pl" => "smartypants" + end + + test do + assert_equal "“Give me a beer”, said Mike O’Connor", + pipe_output("#{bin}/smartypants", + %("Give me a beer", said Mike O'Connor), 0) end end -- cgit v1.2.3