aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Library/Formula/htmlcleaner.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/Library/Formula/htmlcleaner.rb b/Library/Formula/htmlcleaner.rb
index e9635afde..b9103274e 100644
--- a/Library/Formula/htmlcleaner.rb
+++ b/Library/Formula/htmlcleaner.rb
@@ -9,4 +9,13 @@ class Htmlcleaner < Formula
libexec.install "htmlcleaner-#{version}.jar"
bin.write_jar_script libexec/"htmlcleaner-#{version}.jar", "htmlcleaner"
end
+
+ test do
+ path = testpath/"index.html"
+ path.write "<html>"
+
+ output = `#{bin}/htmlcleaner src=#{path}`
+ assert output.include?("</html>")
+ assert_equal 0, $?.exitstatus
+ end
end