multimarkdown: add test
Closes Homebrew/homebrew#28630. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
00cd4c1c1e
commit
c5c7dfc3e0
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue