mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-17 14:49:30 -07:00
Signed-off-by: Alfred Wingate <parona@protonmail.com> Part-of: https://codeberg.org/gentoo/gentoo/pulls/1527 Signed-off-by: Sam James <sam@gentoo.org>
21 lines
835 B
Diff
21 lines
835 B
Diff
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]
|