From 9b0c74e8780f9769320ee912e43066627602ce68 Mon Sep 17 00:00:00 2001 From: George Claghorn Date: Fri, 19 Jan 2018 18:46:59 -0500 Subject: Use helper method --- activestorage/test/analyzer/video_analyzer_test.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3