Skip to content

Commit

Permalink
rtf2latex2e: use test DSL
Browse files Browse the repository at this point in the history
  • Loading branch information
jacknagel committed Feb 2, 2013
1 parent 8a3ec97 commit 9bd6198
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions Formula/rtf2latex2e.rb
Expand Up @@ -16,15 +16,13 @@ def caveats; <<-EOS.undent
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

0 comments on commit 9bd6198

Please sign in to comment.