Merge pull request #13789 from prikeshsavla/13537-upgrade-active-storage-validations-gem

Upgraded gem active_storage_validations to 3.0.2 and fixed any upgrade related issues
This commit is contained in:
Filipe
2026-01-08 13:06:53 +00:00
committed by GitHub
14 changed files with 103 additions and 65 deletions

View File

@@ -604,7 +604,7 @@ RSpec.describe '
click_button "Create"
expect(page).to have_text "Attachment has an invalid content type"
expect(page).to have_text "Attachment is not a valid image"
expect(page).to have_text "Attachment is not identified as a valid media file"
end
it "deleting product images" do

View File

@@ -770,12 +770,12 @@ RSpec.describe 'As an enterprise user, I can update my products' do
end
end
it 'shows a modal telling not a valid image when uploading a non valid image file' do
it 'shows a modal telling not a valid image when uploading an invalid image file' do
within ".reveal-modal" do
attach_file 'image[attachment]',
Rails.public_path.join('invalid_image.jpg'),
visible: false
expect(page).to have_content /Attachment is not a valid image/
expect(page).to have_content /Attachment is not identified as a valid media file/
end
end
end