bandcamp-dl: use assert_predicate instead of File.exist?

This commit is contained in:
ilovezfs 2017-10-06 02:08:01 -07:00
parent 5a013bb82c
commit bf8272ae85

View file

@ -93,8 +93,8 @@ class BandcampDl < Formula
test do
system "#{bin}/bandcamp-dl", "--artist=iamsleepless", "--album=rivulets"
assert File.exist?("iamsleepless/rivulets/01 - rivulets.mp3")
assert_predicate testpath/"iamsleepless/rivulets/01 - rivulets.mp3", :exist?
system "#{bin}/bandcamp-dl", "https://iamsleepless.bandcamp.com/track/under-the-glass-dome"
assert File.exist?("iamsleepless/under-the-glass-dome/Single - under-the-glass-dome.mp3")
assert_predicate testpath/"iamsleepless/under-the-glass-dome/Single - under-the-glass-dome.mp3", :exist?
end
end