get-flash-videos: use assert_predicate instead of File.exist?
This commit is contained in:
parent
cc4c9206b3
commit
2d47f6bdff
1 changed files with 2 additions and 2 deletions
|
@ -66,8 +66,8 @@ class GetFlashVideos < Formula
|
|||
end
|
||||
|
||||
test do
|
||||
file = "BBC_-__Do_whatever_it_takes_to_get_him_to_talk.flv"
|
||||
file = testpath/"BBC_-__Do_whatever_it_takes_to_get_him_to_talk.flv"
|
||||
system bin/"get_flash_videos", "http://news.bbc.co.uk/2/hi/programmes/hardtalk/9560793.stm"
|
||||
assert File.exist?(file), "Failed to download #{file}!"
|
||||
assert_predicate file, :exist?, "Failed to download #{file}!"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue