Add helper to view spec to make it work in rails 5

This commit is contained in:
Luis Ramos
2021-03-13 13:23:23 +00:00
parent 06deab9605
commit 138522bd17

View File

@@ -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