vorbis-tools: use assert_predicate instead of File.exist?

This commit is contained in:
ilovezfs 2017-10-06 02:08:15 -07:00
parent b032851d9e
commit e257204f59

View file

@ -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