aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBaptiste Fontaine2015-04-05 22:03:39 +0200
committerXu Cheng2015-04-06 17:37:44 +0800
commit76aaa35f873ef976fcf7d63f44ae1e74ea27abee (patch)
tree0dbcb52bd5a700ddd0702363fe81d8771965b0a8
parent07d515d08db5f36011838261509970a630ee6f6d (diff)
downloadhomebrew-76aaa35f873ef976fcf7d63f44ae1e74ea27abee.tar.bz2
smartypants: test added
Closes #38395. Signed-off-by: Xu Cheng <xucheng@me.com>
-rw-r--r--Library/Formula/smartypants.rb16
1 files changed, 10 insertions, 6 deletions
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 "&#8220;Give me a beer&#8221;, said Mike O&#8217;Connor",
+ pipe_output("#{bin}/smartypants",
+ %("Give me a beer", said Mike O'Connor), 0)
end
end