aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/asciidoc.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Formula/asciidoc.rb b/Library/Formula/asciidoc.rb
index 36720fe66..78a15333c 100644
--- a/Library/Formula/asciidoc.rb
+++ b/Library/Formula/asciidoc.rb
@@ -40,4 +40,10 @@ class Asciidoc < Formula
See `man 1 xmllint' for more.
EOS
end
+
+ test do
+ (testpath/"test.txt").write("== Hello World!")
+ system "#{bin}/asciidoc", "-b", "html5", "-o", "test.html", "test.txt"
+ assert_match /\<h2 id="_hello_world"\>Hello World!\<\/h2\>/, File.read("test.html")
+ end
end