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