Skip to content

Commit

Permalink
update image spec
Browse files Browse the repository at this point in the history
  • Loading branch information
abdellani committed Dec 22, 2023
1 parent 12b16f9 commit aea665b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/models/spree/image_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down

0 comments on commit aea665b

Please sign in to comment.