txt2man: fix audit warnings

Closes #111.

Signed-off-by: Andrew Janke <andrew@apjanke.net>
This commit is contained in:
Andrea 2016-04-06 19:00:09 -07:00 committed by Andrew Janke
parent f77a63ab38
commit fe952fb6c6

View file

@ -33,7 +33,7 @@ class Txt2man < Formula
EOS
assert_equal "main.3\n", shell_output("#{bin}/src2man test.c 2>&1")
assert File.read("main.3").include?(%q(\fBmain \fP- do stuff))
assert_match(/\\fBmain\ \\fP\-\ do\ stuff\n/, File.read("main.3").lines.to_a[4])
# bookman
system "#{bin}/bookman", "-t", "Test", "-o", "test", Dir["#{man1}/*"]