From 4ee99224ead09a91e6232bc02b85d2e08448268d Mon Sep 17 00:00:00 2001 From: Mohamed ABDELLANI Date: Fri, 22 Dec 2023 16:35:12 +0100 Subject: [PATCH] update image spec --- spec/models/spree/image_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/models/spree/image_spec.rb b/spec/models/spree/image_spec.rb index 3b80fb686cfa..d20ab9eb7156 100644 --- a/spec/models/spree/image_spec.rb +++ b/spec/models/spree/image_spec.rb @@ -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