test/tc_videoextractor.rb in filentory-cli-0.3.1 vs test/tc_videoextractor.rb in filentory-cli-0.4.0
- old
+ new
@@ -6,11 +6,11 @@
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_equal(2.18, metadata["duration"])
+
+ 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")