Skip to content

Commit

Permalink
bandcamp-dl: use assert_predicate instead of File.exist?
Browse files Browse the repository at this point in the history
  • Loading branch information
ilovezfs committed Oct 6, 2017
1 parent 5a013bb commit bf8272a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Formula/bandcamp-dl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ def install

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

0 comments on commit bf8272a

Please sign in to comment.