multimarkdown: add test

Closes Homebrew/homebrew#28630.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Mike Naberezny 2014-04-22 20:45:53 -07:00 committed by Adam Vandenberg
parent 00cd4c1c1e
commit c5c7dfc3e0

View file

@ -20,4 +20,12 @@ class Multimarkdown < Formula
#{opt_prefix}/Support
EOS
end
test do
IO.popen(bin/"mmd", "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