mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-24 05:38:52 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user