bandcamp-dl: use assert_predicate instead of File.exist?
This commit is contained in:
parent
5a013bb82c
commit
bf8272ae85
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue