From e257204f593d124cb8f4dde39444ddd548343ed9 Mon Sep 17 00:00:00 2001 From: ilovezfs Date: Fri, 6 Oct 2017 02:08:15 -0700 Subject: [PATCH] vorbis-tools: use assert_predicate instead of File.exist? --- Formula/vorbis-tools.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/vorbis-tools.rb b/Formula/vorbis-tools.rb index 10fc09913b..bc11c9fb10 100644 --- a/Formula/vorbis-tools.rb +++ b/Formula/vorbis-tools.rb @@ -39,7 +39,7 @@ class VorbisTools < Formula test do system bin/"oggenc", test_fixtures("test.wav"), "-o", "test.ogg" - assert File.exist?("test.ogg") + assert_predicate testpath/"test.ogg", :exist? output = shell_output("#{bin}/ogginfo test.ogg") assert_match "20.625000 kb/s", output end