mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Add helper to view spec to make it work in rails 5
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user