From 4590db1cc2277945e47cc7d12d00490086d553de Mon Sep 17 00:00:00 2001 From: Luis Ramos Date: Sat, 10 Apr 2021 10:35:50 +0100 Subject: [PATCH] Fix view spec by adding mocks to helper methods --- spec/views/spree/admin/orders/invoice.html.haml_spec.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/views/spree/admin/orders/invoice.html.haml_spec.rb b/spec/views/spree/admin/orders/invoice.html.haml_spec.rb index 32c3dd169d..8b49a142e8 100644 --- a/spec/views/spree/admin/orders/invoice.html.haml_spec.rb +++ b/spec/views/spree/admin/orders/invoice.html.haml_spec.rb @@ -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