diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/markdown.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Formula/markdown.rb b/Library/Formula/markdown.rb index d81ab9d10..032eefcfc 100644 --- a/Library/Formula/markdown.rb +++ b/Library/Formula/markdown.rb @@ -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 |
