Skip to content

Commit 1284513

Browse files
authored
Merge pull request rails#54164 from zzak/asto-test-mini_magick-deprecation-warning
Fix MiniMagic::Image.mime_type deprecation in ASto test
2 parents da32425 + bd4be49 commit 1284513

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activestorage/test/previewer/video_previewer_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class ActiveStorage::Previewer::VideoPreviewerTest < ActiveSupport::TestCase
1616
image = MiniMagick::Image.read(attachable[:io])
1717
assert_equal 640, image.width
1818
assert_equal 480, image.height
19-
assert_equal "image/jpeg", image.mime_type
19+
assert_equal "image/jpeg", Marcel::Magic.by_extension(image.type).type
2020
end
2121
end
2222

0 commit comments

Comments
 (0)