From 6375ae9c04dffce81ca860e1f81a8a5a239ea945 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Fri, 1 Feb 2013 23:13:30 -0600 Subject: lilypond: use test DSL --- Library/Formula/lilypond.rb | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'Library') 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 -- cgit v1.2.3