markdown: add test

Closes Homebrew/homebrew#26602.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Mike Naberezny 2014-02-10 17:10:58 -08:00 committed by Adam Vandenberg
parent 1c11978636
commit b0fdad1081

View file

@ -11,4 +11,12 @@ class Markdown < Formula
def install
bin.install 'Markdown.pl' => 'markdown'
end
test do
IO.popen("#{bin}/markdown", "w+") do |pipe|
pipe.write "foo *bar*\n"
pipe.close_write
assert_equal "<p>foo <em>bar</em></p>\n", pipe.read
end
end
end