Sha256: 35e3ed2e5da6e580936f11399d597bdb52c2b82a2377b289dd9fbb735dcfaf43
Contents?: true
Size: 710 Bytes
Versions: 2
Compression:
Stored size: 710 Bytes
Contents
require File.expand_path '../test_helper.rb', __FILE__ require 'minitest/autorun' require 'pathname' require 'filentory/videoextractor' class TestVideoExtractor < Minitest::Test def test_can_extract_metadata extractor = VideoExtractor.new metadata = extractor.metadata_for_file(File.dirname(__FILE__)+"/integration/data/video.mov") assert_in_delta(2.18, metadata["duration"], 0.05) assert_equal("568x320", metadata["resolution"]) end def test_can_handle_avi assert(VideoExtractor.handles?(".avi"), "VideoExtractor should handle .avi") end def test_can_not_handle_jpg assert(!VideoExtractor.handles?(".jpg"), "VideoExtractor should responde false for .jpg") end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
filentory-cli-0.5.0 | test/tc_videoextractor.rb |
filentory-cli-0.4.0 | test/tc_videoextractor.rb |