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:
commit
a307c697b2
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue