From f9d2deeb1731b8a50990928e63e2a30a4b98c921 Mon Sep 17 00:00:00 2001 From: Gaetan Craig-Riou Date: Fri, 20 Oct 2023 15:28:26 +1100 Subject: [PATCH] Small clean up --- spec/controllers/split_checkout_controller_spec.rb | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/spec/controllers/split_checkout_controller_spec.rb b/spec/controllers/split_checkout_controller_spec.rb index c4ead98e3f..afa3d89274 100644 --- a/spec/controllers/split_checkout_controller_spec.rb +++ b/spec/controllers/split_checkout_controller_spec.rb @@ -8,10 +8,7 @@ describe SplitCheckoutController, type: :controller do let(:distributor) { create(:distributor_enterprise, with_payment_and_shipping: true) } let(:order_cycle) { create(:order_cycle, distributors: [distributor]) } let(:exchange) { order_cycle.exchanges.outgoing.first } - let(:order) { - create(:order_with_line_items, line_items_count: 1, distributor:, - order_cycle:) - } + let(:order) { create(:order_with_line_items, line_items_count: 1, distributor:, order_cycle:) } let(:payment_method) { distributor.payment_methods.first } let(:shipping_method) { distributor.shipping_methods.first } @@ -211,7 +208,7 @@ describe SplitCheckoutController, type: :controller do } end - it "updates and redirects to payment step" do + it "updates and redirects to summary step" do put(:update, params:) expect(response).to redirect_to checkout_step_path(:summary)