diff options
| author | Xu Cheng | 2014-12-29 08:45:31 +0800 |
|---|---|---|
| committer | Jack Nagel | 2014-12-28 21:56:06 -0500 |
| commit | 904f2b7fe147f056920211868a69ec809e05843e (patch) | |
| tree | 4136f17a81973dbaf203d3aebebfc4eca92f6952 /Library | |
| parent | 851ee40eda363bbaa671507a1016982f6efc78fb (diff) | |
| download | homebrew-904f2b7fe147f056920211868a69ec809e05843e.tar.bz2 | |
texinfo: add test
Closes #35323.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/texinfo.rb | 12 |
1 files changed, 12 insertions, 0 deletions
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 |
