Stub CSS request in invoice specs

This commit is contained in:
Matt-Yorkley
2021-06-14 16:57:44 +01:00
parent 1ff75ee642
commit c198dc0fca
2 changed files with 6 additions and 0 deletions

View File

@@ -23,6 +23,10 @@ describe '
payment_state: 'balance_due')
end
before do
stub_request(:get, ->(uri) { uri.to_s.include? "/css/mail" })
end
describe "that contains right Payment Description at Checkout information" do
let!(:payment_method1) do
create(:stripe_sca_payment_method, distributors: [distributor], description: "description1")

View File

@@ -25,6 +25,8 @@ describe "spree/admin/orders/invoice.html.haml" do
display_checkout_tax_total: '10',
display_checkout_total_less_tax: '8',
outstanding_balance_label: 'Outstanding Balance'
stub_request(:get, ->(uri) { uri.to_s.include? "/css/mail" })
end
it "displays the customer code" do