diff --git a/Formula/txt2tags.rb b/Formula/txt2tags.rb index c5d537e29c..29e3c3e0a1 100644 --- a/Formula/txt2tags.rb +++ b/Formula/txt2tags.rb @@ -1,12 +1,16 @@ -require 'formula' - class Txt2tags < Formula - homepage 'http://txt2tags.org' - url 'https://txt2tags.googlecode.com/files/txt2tags-2.6.tgz' - sha1 '91bc47e02b9ec7f2fa39c8f7ff5c260164a74718' + homepage "http://txt2tags.org" + url "https://txt2tags.googlecode.com/files/txt2tags-2.6.tgz" + sha256 "601467d7860f3cfb3d48050707c6277ff3ceb22fa7be4f5bd968de540ac5b05c" def install - bin.install 'txt2tags' + bin.install "txt2tags" man1.install "doc/manpage.man" => "txt2tags.1" end + + test do + (testpath/"test.txt").write ("\n= Title =") + system bin/"txt2tags", "-t", "html", "--no-headers", "test.txt" + assert_match %r{

Title

}, File.read("test.html") + end end