aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike Naberezny2014-04-22 20:45:53 -0700
committerAdam Vandenberg2014-04-22 21:01:24 -0700
commitec524148c920d6a988264887d4fe707b43ae45da (patch)
treecf54414da04bb3cbd0f2f046264b5b8a18bbd179 /Library
parent123c4ffa8e19ceb528fe4e0449dea90e9698fe35 (diff)
downloadhomebrew-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.rb8
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