aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/test/analyzer/video_analyzer_test.rb
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2019-07-16 03:32:23 +0100
committerGitHub <noreply@github.com>2019-07-16 03:32:23 +0100
commita307c697b28e3c8b2860d2274c23e4d95dc164ae (patch)
tree2998e48c6a8c1f340c9e9f43ad746f072c369a04 /activestorage/test/analyzer/video_analyzer_test.rb
parentf30f76af747858826d3618866676cd5a4979e64a (diff)
parent564fd87b9932b26a4bf5945f33b6eae32b5c7e73 (diff)
downloadrails-a307c697b28e3c8b2860d2274c23e4d95dc164ae.tar.gz
rails-a307c697b28e3c8b2860d2274c23e4d95dc164ae.tar.bz2
rails-a307c697b28e3c8b2860d2274c23e4d95dc164ae.zip
Merge pull request #36676 from wjessop/change_activestorage_metadata_duration_to_bound
Different versions of ffprobe can return subtly different video lengths
Diffstat (limited to 'activestorage/test/analyzer/video_analyzer_test.rb')
-rw-r--r--activestorage/test/analyzer/video_analyzer_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activestorage/test/analyzer/video_analyzer_test.rb b/activestorage/test/analyzer/video_analyzer_test.rb
index 172a2f0aae..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