From 904f2b7fe147f056920211868a69ec809e05843e Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Mon, 29 Dec 2014 08:45:31 +0800 Subject: texinfo: add test Closes #35323. Signed-off-by: Jack Nagel --- Library/Formula/texinfo.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Library/Formula') diff --git a/Library/Formula/texinfo.rb b/Library/Formula/texinfo.rb index d426781f5..24cac7b20 100644 --- a/Library/Formula/texinfo.rb +++ b/Library/Formula/texinfo.rb @@ -31,4 +31,16 @@ class Texinfo < Formula cp "doc/epsf.tex", "#{HOMEBREW_PREFIX}/share/texmf-dist/tex/generic/dvips/" end end + + test do + (testpath/"test.texinfo").write <<-EOS.undent + @ifnottex + @node Top + @top Hello World! + @end ifnottex + @bye + EOS + system "#{bin}/makeinfo", "test.texinfo" + assert_match /Hello World!/, File.read("test.info") + end end -- cgit v1.2.3