whatmp3: use assert_predicate

This commit is contained in:
ilovezfs 2017-10-09 02:57:30 -07:00
parent 548ea6f43a
commit 1f899e0644

View file

@ -31,6 +31,6 @@ class Whatmp3 < Formula
# Create dummy FLAC
(testpath/"flac/file.flac").write "fLaC\x00\x00\x00\"\x04\x80\x04\x80\x00\x00\f\x00\x00\f\x01\xF4\x00\xF0\x00\x00\x00\x01\xF3\x8B\xE3\xDBM\x93\xE40\\~$\xBE\x94\xEF\x01\x9A\x84\x00\x00( \x00\x00\x00reference libFLAC 1.2.1 20070917\x00\x00\x00\x00\xFF\xF8d\b\x00\x00\xE3\x03\x01\xFD\xEC\x10"
system "#{bin}/whatmp3", "--notorrent", "--V0", "flac"
assert (testpath/"V0/file.mp3").exist?
assert_predicate testpath/"V0/file.mp3", :exist?
end
end