tests: skip video file tests if ffmpeg isn't installed.

This commit is contained in:
evazion
2020-06-10 18:07:54 -05:00
parent 15423e0b7b
commit 8a2ae91ff2
5 changed files with 31 additions and 14 deletions

View File

@@ -22,6 +22,8 @@ class MediaFile::Video < MediaFile
private
def video
raise NotImplementedError, "can't process videos: ffmpeg or mkvmerge not installed" unless self.class.videos_enabled?
FFMPEG::Movie.new(file.path)
end