update regex used for generating url for images

This commit is contained in:
Mohamed ABDELLANI
2024-03-15 00:43:30 +01:00
parent 45f94ea2d0
commit fdc3a16c7f

View File

@@ -85,7 +85,7 @@ module Spree
expect(attachment.attached?).to eq true
url = Rails.application.routes.url_helpers.url_for(attachment)
expect(url).to match %r|^http://test\.host/rails/active_storage/blobs/redirect/[[:alnum:]-]+/logo-black\.png$|
expect(url).to match %r|^http://test\.host/rails/active_storage/blobs/redirect/[[:alnum:]=-]+/logo-black\.png$|
end
end
@@ -103,7 +103,7 @@ module Spree
expect(subject.attachment).to be_attached
expect(Rails.application.routes.url_helpers.url_for(subject.attachment)).
to match %r"^http://test\.host/rails/active_storage/blobs/redirect/[[:alnum:]-]+/logo-black\.png"
to match %r"^http://test\.host/rails/active_storage/blobs/redirect/[[:alnum:]=-]+/logo-black\.png"
end
end
end