diff options
| author | Jack Nagel | 2013-02-01 23:12:31 -0600 |
|---|---|---|
| committer | Jack Nagel | 2013-02-01 23:38:50 -0600 |
| commit | de08098533ba7faf4526050b76f349b619223777 (patch) | |
| tree | 7fdb13d8f699367d7129031d27a2e52e0f44aeeb /Library | |
| parent | 0718348344c67d5105ef193c5807b7423f0516b2 (diff) | |
| download | homebrew-de08098533ba7faf4526050b76f349b619223777.tar.bz2 | |
checkstyle: use test DSL
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/checkstyle.rb | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/Library/Formula/checkstyle.rb b/Library/Formula/checkstyle.rb index 33b1162d8..251883ec5 100644 --- a/Library/Formula/checkstyle.rb +++ b/Library/Formula/checkstyle.rb @@ -10,15 +10,12 @@ class Checkstyle < Formula bin.write_jar_script libexec/'checkstyle-5.6-all.jar', 'checkstyle' end - def test + test do # Note this test "fails" because the audit has issues # TODO - pipe through cat to ingore error code - mktemp do - # create test file - (Pathname.pwd/"Test.java").write <<-EOS.undent + (testpath/"Test.java").write <<-EOS.undent public class Test{ } - EOS - system "#{bin}/checkstyle", "-c", "#{libexec}/sun_checks.xml", "-r", "Test.java" - end + EOS + system "#{bin}/checkstyle", "-c", "#{libexec}/sun_checks.xml", "-r", "Test.java" end end |
