schismtracker: use assert_predicate instead of File.exist?

This commit is contained in:
ilovezfs 2017-10-06 03:53:26 -07:00
parent 4ac7d73391
commit ccc165eb5d

View file

@ -41,10 +41,10 @@ class Schismtracker < Formula
test do
testpath.install resource("demo_mods")
test_wav = "#{testpath}/test.wav"
test_wav = testpath/"test.wav"
system "#{bin}/schismtracker", "-p", "#{testpath}/give-me-an-om.mod",
"--diskwrite=#{test_wav}"
assert File.exist? test_wav
assert_predicate test_wav, :exist?
assert_match /RIFF \(little-endian\) data, WAVE audio, Microsoft PCM, 16 bit, stereo 44100 Hz/,
shell_output("/usr/bin/file '#{test_wav}'")
end