aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/lilypond.rb
diff options
context:
space:
mode:
authorJack Nagel2013-02-01 23:13:30 -0600
committerJack Nagel2013-02-01 23:38:56 -0600
commit6375ae9c04dffce81ca860e1f81a8a5a239ea945 (patch)
treebbbded60c891291b04268a0e09dbb8623598a9cb /Library/Formula/lilypond.rb
parent4bc3ded87a59431a737ab64d635b5da4604872c6 (diff)
downloadhomebrew-6375ae9c04dffce81ca860e1f81a8a5a239ea945.tar.bz2
lilypond: use test DSL
Diffstat (limited to 'Library/Formula/lilypond.rb')
-rw-r--r--Library/Formula/lilypond.rb18
1 files changed, 8 insertions, 10 deletions
diff --git a/Library/Formula/lilypond.rb b/Library/Formula/lilypond.rb
index b38060a12..29068dc3d 100644
--- a/Library/Formula/lilypond.rb
+++ b/Library/Formula/lilypond.rb
@@ -50,15 +50,13 @@ class Lilypond < Formula
end
end
- def test
- mktemp do
- (Pathname.pwd+'test.ly').write <<-EOS.undent
- \\version "2.16.0"
- \\header { title = "Do-Re-Mi" }
- { c' d' e' }
- EOS
- lilykeg = Formula.factory('lilypond').linked_keg
- system "#{lilykeg}/bin/lilypond test.ly"
- end
+ test do
+ (testpath/'test.ly').write <<-EOS.undent
+ \\version "2.16.0"
+ \\header { title = "Do-Re-Mi" }
+ { c' d' e' }
+ EOS
+ lilykeg = Formula.factory('lilypond').linked_keg
+ system "#{lilykeg}/bin/lilypond test.ly"
end
end