Merge pull request #11470 from openfoodfoundation/dependabot/bundler/webmock-3.19.1

chore(deps-dev): bump webmock from 3.18.1 to 3.19.1
This commit is contained in:
Maikel
2024-01-15 10:57:08 +11:00
committed by GitHub
3 changed files with 12 additions and 3 deletions

View File

@@ -772,7 +772,7 @@ GEM
webfinger (1.2.0)
activesupport
httpclient (>= 2.4)
webmock (3.18.1)
webmock (3.19.1)
addressable (>= 2.8.0)
crack (>= 0.3.2)
hashdiff (>= 0.4.0, < 2.0.0)

View File

@@ -29,7 +29,12 @@ describe '
before do
Capybara.current_driver = :rack_test
stub_request(:get, ->(uri) { uri.to_s.include? "/css/mail" })
# return a duplicate empaty string for CSS pack request like:
# 'http://test.host/packs-test/css/mail-1ab2dc7f.css'
# This is because Wicked PDF will try to force an encoding on the returned string, which will
# break with a frozen string
stub_request(:get, ->(uri) { uri.to_s.include? "/css/mail" }).to_return(body: "".dup)
end
after do

View File

@@ -27,7 +27,11 @@ describe "spree/admin/orders/invoice.html.haml" do
display_checkout_total_less_tax: '8',
outstanding_balance_label: 'Outstanding Balance'
stub_request(:get, ->(uri) { uri.to_s.include? "/css/mail" })
# return a duplicate empaty string for CSS pack request like:
# 'http://test.host/packs-test/css/mail-1ab2dc7f.css'
# This is because Wicked PDF will try to force an encoding on the returned string, which will
# break with a frozen string
stub_request(:get, ->(uri) { uri.to_s.include? "/css/mail" }).to_return(body: "".dup)
end
it "displays the customer code" do