mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-08 22:56:06 +00:00
update regex used for generating url for images
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user