blob: eb58ae710d55a7cf42f934e9261bad860b613d49 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
https://github.com/rails/rails/issues/56069
https://github.com/rails/rails/pull/56125
From 92cee4cd5eb0f0dc2412b6ac9e4169c49ee52733 Mon Sep 17 00:00:00 2001
From: zzak <zzak@hey.com>
Date: Mon, 10 Nov 2025 15:00:25 +0900
Subject: [PATCH] Fix AudioAnalyzerTest for ffmpeg 7 and ffmpeg 8
--- a/test/analyzer/audio_analyzer_test.rb
+++ b/test/analyzer/audio_analyzer_test.rb
@@ -10,7 +10,8 @@ class ActiveStorage::Analyzer::AudioAnalyzerTest < ActiveSupport::TestCase
blob = create_file_blob(filename: "audio.mp3", content_type: "audio/mp3")
metadata = extract_metadata_from(blob)
- assert_equal 0.914286, metadata[:duration]
+ assert (0.863379..0.914286).include?(metadata[:duration])
+
assert_equal 128000, metadata[:bit_rate]
assert_equal 44100, metadata[:sample_rate]
assert_not_nil metadata[:tags]
|