rtf2latex2e: use test DSL
This commit is contained in:
parent
8a3ec979cf
commit
9bd6198f6d
1 changed files with 8 additions and 10 deletions
|
@ -16,15 +16,13 @@ class Rtf2latex2e < Formula
|
|||
EOS
|
||||
end
|
||||
|
||||
def test
|
||||
mktemp do
|
||||
Pathname.new('test.rtf').write <<-'EOF'.undent
|
||||
{\rtf1\ansi
|
||||
{\b hello} world
|
||||
}
|
||||
EOF
|
||||
system "#{bin}/rtf2latex2e", "-n", "test.rtf"
|
||||
system %q[cat test.tex | grep '\textbf{hello} world']
|
||||
end
|
||||
test do
|
||||
(testpath/'test.rtf').write <<-'EOF'.undent
|
||||
{\rtf1\ansi
|
||||
{\b hello} world
|
||||
}
|
||||
EOF
|
||||
system "#{bin}/rtf2latex2e", "-n", "test.rtf"
|
||||
system %q[cat test.tex | grep '\textbf{hello} world']
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue