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

Revert "Merge pull request #36676 from wjessop/change_activestorage_metadata_duration_to_bound"

This reverts commit a307c697b2, reversing
changes made to f30f76af74.

Reason: This assertion is not failed even without this PR since both
ffprobe versions (3.2.14 and 4.1.3) return the same duration 5.166648
for `video.mp4`.
So there is no need to touch this assertion at this point.
This commit is contained in:
Ryuta Kamizono 2019-07-17 09:59:03 +09:00
parent 1b984fc258
commit 559ffacfd9

View file

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