diff --git a/activestorage/test/models/variant_test.rb b/activestorage/test/models/variant_test.rb index 63c74f48ea0aa55c0f8dea5df9ad9458bc316fd2..c4779fdf8d3a4884ece4f945bf08c6c4ddf34d3d 100644 --- a/activestorage/test/models/variant_test.rb +++ b/activestorage/test/models/variant_test.rb @@ -162,12 +162,12 @@ class ActiveStorage::VariantTest < ActiveSupport::TestCase end test "resized variation of BMP blob" do - blob = create_file_blob(filename: "colors.bmp") + blob = create_file_blob(filename: "colors.bmp", content_type: "image/bmp") variant = blob.variant(resize: "15x15").processed - assert_match(/colors\.bmp/, variant.url) + assert_match(/colors\.png/, variant.url) image = read_image(variant) - assert_equal "BMP", image.type + assert_equal "PNG", image.type assert_equal 15, image.width assert_equal 8, image.height end