From 138522bd171eafc5004b19613b77af169389ffb3 Mon Sep 17 00:00:00 2001 From: Luis Ramos Date: Sat, 13 Mar 2021 13:23:23 +0000 Subject: [PATCH] Add helper to view spec to make it work in rails 5 --- spec/views/spree/shared/_order_details.html.haml_spec.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/spec/views/spree/shared/_order_details.html.haml_spec.rb b/spec/views/spree/shared/_order_details.html.haml_spec.rb index d1b7986203..14ac869fa5 100644 --- a/spec/views/spree/shared/_order_details.html.haml_spec.rb +++ b/spec/views/spree/shared/_order_details.html.haml_spec.rb @@ -1,10 +1,12 @@ # frozen_string_literal: true require "spec_helper" - +require 'checkout_helper' describe "spree/shared/_order_details.html.haml" do include AuthenticationHelper helper Spree::BaseHelper + helper CheckoutHelper + helper OrderHelper let(:order) { create(:completed_order_with_fees) } @@ -12,7 +14,7 @@ describe "spree/shared/_order_details.html.haml" do assign(:order, order) allow(view).to receive_messages( order: order, - current_order: order, + current_order: order ) end