1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #36676 from wjessop/change_activestorage_metadata_duration_to_bound

Different versions of ffprobe can return subtly different video lengths
This commit is contained in:
Rafael França 2019-07-16 03:32:23 +01:00 committed by GitHub
commit a307c697b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,7 +13,7 @@ class ActiveStorage::Analyzer::VideoAnalyzerTest < ActiveSupport::TestCase
assert_equal 640, metadata[:width] assert_equal 640, metadata[:width]
assert_equal 480, metadata[:height] assert_equal 480, metadata[:height]
assert_equal [4, 3], metadata[:display_aspect_ratio] assert_equal [4, 3], metadata[:display_aspect_ratio]
assert_equal 5.166648, metadata[:duration] assert_equal true, metadata[:duration].between?(4, 6)
assert_not_includes metadata, :angle assert_not_includes metadata, :angle
end end