diff options
| author | Mike Naberezny | 2014-02-10 17:10:58 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2014-02-10 19:41:14 -0800 |
| commit | cc38e00de914515e095dab7cd27d19d341d78ba5 (patch) | |
| tree | 29cecbf0d558e3a1bb654e439a272e8344c45dd5 /Library | |
| parent | b5e21a2a322b8095e79893c9d0b10950710f3373 (diff) | |
| download | homebrew-cc38e00de914515e095dab7cd27d19d341d78ba5.tar.bz2 | |
markdown: add test
Closes #26602.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
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 |
