aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/test/analyzer/video_analyzer_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activestorage/test/analyzer/video_analyzer_test.rb')
-rw-r--r--activestorage/test/analyzer/video_analyzer_test.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/activestorage/test/analyzer/video_analyzer_test.rb b/activestorage/test/analyzer/video_analyzer_test.rb
index d30f49315a..57e094908a 100644
--- a/activestorage/test/analyzer/video_analyzer_test.rb
+++ b/activestorage/test/analyzer/video_analyzer_test.rb
@@ -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 5.166648, metadata[:duration]
+ assert_equal true, metadata[:duration].between?(4, 6)
assert_not_includes metadata, :angle
end
@@ -24,7 +24,6 @@ class ActiveStorage::Analyzer::VideoAnalyzerTest < ActiveSupport::TestCase
assert_equal 480, metadata[:width]
assert_equal 640, metadata[:height]
assert_equal [4, 3], metadata[:display_aspect_ratio]
- assert_equal 5.227975, metadata[:duration]
assert_equal 90, metadata[:angle]
end