aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-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