mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Rename spec/support/CheckoutHelper to resolve colision with app/helpers/CheckoutHelper
This commit is contained in:
@@ -6,7 +6,7 @@ feature '
|
||||
As an administrator
|
||||
I want to print a ticket for an order
|
||||
', js: true do
|
||||
include CheckoutHelper
|
||||
include CheckoutRequestsHelper
|
||||
include AuthenticationHelper
|
||||
include ActionView::Helpers::NumberHelper
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ feature "As a consumer I want to check out my cart", js: true do
|
||||
include AuthenticationHelper
|
||||
include WebHelper
|
||||
include ShopWorkflow
|
||||
include CheckoutHelper
|
||||
include CheckoutRequestsHelper
|
||||
include UIComponentHelper
|
||||
|
||||
describe "using the checkout" do
|
||||
|
||||
@@ -4,7 +4,7 @@ require "spec_helper"
|
||||
|
||||
feature "Check out with Paypal", js: true do
|
||||
include ShopWorkflow
|
||||
include CheckoutHelper
|
||||
include CheckoutRequestsHelper
|
||||
include AuthenticationHelper
|
||||
include PaypalHelper
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ require 'spec_helper'
|
||||
feature "As a consumer I want to check out my cart", js: true do
|
||||
include AuthenticationHelper
|
||||
include ShopWorkflow
|
||||
include CheckoutHelper
|
||||
include CheckoutRequestsHelper
|
||||
include WebHelper
|
||||
include UIComponentHelper
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ require 'spec_helper'
|
||||
feature "Check out with Stripe", js: true do
|
||||
include AuthenticationHelper
|
||||
include ShopWorkflow
|
||||
include CheckoutHelper
|
||||
include CheckoutRequestsHelper
|
||||
include StripeHelper
|
||||
include StripeStubs
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ feature "Using embedded shopfront functionality", js: true do
|
||||
include AuthenticationHelper
|
||||
include WebHelper
|
||||
include ShopWorkflow
|
||||
include CheckoutHelper
|
||||
include CheckoutRequestsHelper
|
||||
include UIComponentHelper
|
||||
|
||||
describe "using iframes" do
|
||||
|
||||
@@ -6,7 +6,7 @@ feature "shopping with variant overrides defined", js: true do
|
||||
include AuthenticationHelper
|
||||
include WebHelper
|
||||
include ShopWorkflow
|
||||
include CheckoutHelper
|
||||
include CheckoutRequestsHelper
|
||||
include UIComponentHelper
|
||||
|
||||
let(:hub) { create(:distributor_enterprise, with_payment_and_shipping: true) }
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module CheckoutHelper
|
||||
module CheckoutRequestsHelper
|
||||
def have_checkout_details
|
||||
have_content "Your details"
|
||||
end
|
||||
@@ -1,7 +1,7 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require "spec_helper"
|
||||
require 'checkout_helper'
|
||||
|
||||
describe "spree/shared/_order_details.html.haml" do
|
||||
include AuthenticationHelper
|
||||
helper Spree::BaseHelper
|
||||
|
||||
Reference in New Issue
Block a user