diff --git a/spec/features/admin/order_print_ticket_spec.rb b/spec/features/admin/order_print_ticket_spec.rb index 15fd46692a..e4d28d045a 100644 --- a/spec/features/admin/order_print_ticket_spec.rb +++ b/spec/features/admin/order_print_ticket_spec.rb @@ -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 diff --git a/spec/features/consumer/shopping/checkout_auth_spec.rb b/spec/features/consumer/shopping/checkout_auth_spec.rb index 7bbb6e8922..2a9d178fc0 100644 --- a/spec/features/consumer/shopping/checkout_auth_spec.rb +++ b/spec/features/consumer/shopping/checkout_auth_spec.rb @@ -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 diff --git a/spec/features/consumer/shopping/checkout_paypal_spec.rb b/spec/features/consumer/shopping/checkout_paypal_spec.rb index 4e8f6dce30..3135aa1d35 100644 --- a/spec/features/consumer/shopping/checkout_paypal_spec.rb +++ b/spec/features/consumer/shopping/checkout_paypal_spec.rb @@ -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 diff --git a/spec/features/consumer/shopping/checkout_spec.rb b/spec/features/consumer/shopping/checkout_spec.rb index 20e141e262..6c07f0f0b8 100644 --- a/spec/features/consumer/shopping/checkout_spec.rb +++ b/spec/features/consumer/shopping/checkout_spec.rb @@ -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 diff --git a/spec/features/consumer/shopping/checkout_stripe_spec.rb b/spec/features/consumer/shopping/checkout_stripe_spec.rb index 07e1d98607..bd98d198a9 100644 --- a/spec/features/consumer/shopping/checkout_stripe_spec.rb +++ b/spec/features/consumer/shopping/checkout_stripe_spec.rb @@ -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 diff --git a/spec/features/consumer/shopping/embedded_shopfronts_spec.rb b/spec/features/consumer/shopping/embedded_shopfronts_spec.rb index 2d2d3113f1..86031e1ba5 100644 --- a/spec/features/consumer/shopping/embedded_shopfronts_spec.rb +++ b/spec/features/consumer/shopping/embedded_shopfronts_spec.rb @@ -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 diff --git a/spec/features/consumer/shopping/variant_overrides_spec.rb b/spec/features/consumer/shopping/variant_overrides_spec.rb index ce8efc02ae..ce093f1c64 100644 --- a/spec/features/consumer/shopping/variant_overrides_spec.rb +++ b/spec/features/consumer/shopping/variant_overrides_spec.rb @@ -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) } diff --git a/spec/support/request/checkout_helper.rb b/spec/support/request/checkout_request_helper.rb similarity index 97% rename from spec/support/request/checkout_helper.rb rename to spec/support/request/checkout_request_helper.rb index e27ffd27ed..3a6de815bd 100644 --- a/spec/support/request/checkout_helper.rb +++ b/spec/support/request/checkout_request_helper.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -module CheckoutHelper +module CheckoutRequestsHelper def have_checkout_details have_content "Your details" end 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 14ac869fa5..5a37c4519e 100644 --- a/spec/views/spree/shared/_order_details.html.haml_spec.rb +++ b/spec/views/spree/shared/_order_details.html.haml_spec.rb @@ -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