diff options
author | George Claghorn <george@basecamp.com> | 2018-01-19 18:46:59 -0500 |
---|---|---|
committer | George Claghorn <george@basecamp.com> | 2018-01-19 18:46:59 -0500 |
commit | 9b0c74e8780f9769320ee912e43066627602ce68 (patch) | |
tree | 3b1f4ecd039bd09608494b11d23a9b5684720397 /activestorage/test | |
parent | 2450fc24e30121863403517b44dfdfa7cb25e33a (diff) | |
download | rails-9b0c74e8780f9769320ee912e43066627602ce68.tar.gz rails-9b0c74e8780f9769320ee912e43066627602ce68.tar.bz2 rails-9b0c74e8780f9769320ee912e43066627602ce68.zip |
Use helper method
Diffstat (limited to 'activestorage/test')
-rw-r--r-- | activestorage/test/analyzer/video_analyzer_test.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/activestorage/test/analyzer/video_analyzer_test.rb b/activestorage/test/analyzer/video_analyzer_test.rb index 03fbd72735..fa65877de3 100644 --- a/activestorage/test/analyzer/video_analyzer_test.rb +++ b/activestorage/test/analyzer/video_analyzer_test.rb @@ -39,7 +39,8 @@ class ActiveStorage::Analyzer::VideoAnalyzerTest < ActiveSupport::TestCase test "analyzing a video without a video stream" do blob = create_file_blob(filename: "video_without_video_stream.mp4", content_type: "video/mp4") - assert_equal({ "analyzed" => true, "identified" => true }, blob.tap(&:analyze).metadata) + metadata = extract_metadata_from(blob) + assert_equal({ "analyzed" => true, "identified" => true }, metadata) end private |