tests: skip ugoira tests if ffmpeg/mkvmerge not installed.

This commit is contained in:
evazion
2019-09-01 13:10:37 -05:00
parent 3216f83ad8
commit 6e7b882dda
5 changed files with 22 additions and 30 deletions

View File

@@ -1,5 +1,3 @@
require 'ptools'
module DownloadTestHelper
def assert_downloaded(expected_filesize, source, referer=nil)
download = Downloads::File.new(source, referer)
@@ -33,8 +31,4 @@ module DownloadTestHelper
res = HTTParty.head(url, Danbooru.config.httparty_options.deep_merge(headers: headers))
assert_equal(size, res.content_length)
end
def check_ffmpeg
File.which("ffmpeg") && File.which("mkvmerge")
end
end