mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-28 01:53:25 +00:00
Stub CSS request in invoice specs
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user