aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2013-02-01 23:12:53 -0600
committerJack Nagel2013-02-01 23:38:54 -0600
commit555c2b61fd8792159fb836846f5fbf0d4419439f (patch)
tree3664897a4a33fc46d8896edb499b975063a219b4 /Library/Formula
parentb8f1eebdc478d38bccbd269b180026193b47182b (diff)
downloadhomebrew-555c2b61fd8792159fb836846f5fbf0d4419439f.tar.bz2
rtf2latex2e: use test DSL
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/rtf2latex2e.rb18
1 files changed, 8 insertions, 10 deletions
diff --git a/Library/Formula/rtf2latex2e.rb b/Library/Formula/rtf2latex2e.rb
index d92760f4c..35bc8ae32 100644
--- a/Library/Formula/rtf2latex2e.rb
+++ b/Library/Formula/rtf2latex2e.rb
@@ -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