Fix view spec by adding mocks to helper methods

This commit is contained in:
Luis Ramos
2021-04-10 10:35:50 +01:00
committed by Andy Brett
parent 3e14138a3f
commit 4590db1cc2

View File

@@ -21,6 +21,10 @@ describe "spree/admin/orders/invoice.html.haml" do
before do
assign(:order, order)
allow(view).to receive_messages checkout_adjustments_for: [],
display_checkout_tax_total: '10',
display_checkout_total_less_tax: '8',
outstanding_balance_label: 'Outstanding Balance'
end
it "displays the customer code" do