From c06f133915da2fb74ab2b8053cffcaa550e103f9 Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Mon, 29 Dec 2014 15:17:55 +0800 Subject: asciidoc: add test Closes #35331. Signed-off-by: Mike McQuaid --- Library/Formula/asciidoc.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Library/Formula') 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 /\

Hello World!\<\/h2\>/, File.read("test.html") + end end -- cgit v1.2.3