diff options
| author | Mike Naberezny | 2014-04-22 20:45:53 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2014-04-22 21:01:24 -0700 |
| commit | ec524148c920d6a988264887d4fe707b43ae45da (patch) | |
| tree | cf54414da04bb3cbd0f2f046264b5b8a18bbd179 /Library | |
| parent | 123c4ffa8e19ceb528fe4e0449dea90e9698fe35 (diff) | |
| download | homebrew-ec524148c920d6a988264887d4fe707b43ae45da.tar.bz2 | |
multimarkdown: add test
Closes #28630.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/multimarkdown.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Formula/multimarkdown.rb b/Library/Formula/multimarkdown.rb index 9b51da925..fc9bb23eb 100644 --- a/Library/Formula/multimarkdown.rb +++ b/Library/Formula/multimarkdown.rb @@ -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 |
