Skip to content

Commit

Permalink
remove legacy checkout tests
Browse files Browse the repository at this point in the history
  • Loading branch information
abdellani committed Jun 1, 2023
1 parent 214021f commit f7fab38
Show file tree
Hide file tree
Showing 16 changed files with 170 additions and 803 deletions.
2 changes: 0 additions & 2 deletions spec/controllers/payment_gateways/stripe_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,6 @@ module PaymentGateways

context "using split checkout" do
before do
Flipper.enable(:split_checkout)

order.update_attribute :state, "confirmation"
end

Expand Down
2 changes: 0 additions & 2 deletions spec/controllers/split_checkout_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
let(:shipping_method) { distributor.shipping_methods.first }

before do
Flipper.enable(:split_checkout)

exchange.variants << order.line_items.first.variant
allow(controller).to receive(:current_order) { order }
allow(controller).to receive(:spree_current_user) { user }
Expand Down
4 changes: 0 additions & 4 deletions spec/helpers/injection_helper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@
order = create(:order, distributor: current_distributor)
allow(helper).to receive(:current_order) { order }
allow(helper).to receive(:spree_current_user) { nil }
expect(helper.inject_available_shipping_methods).to match sm.id.to_s
expect(helper.inject_available_shipping_methods).to match sm.compute_amount(order).to_s
end

it "injects payment methods" do
Expand All @@ -47,8 +45,6 @@
order = create(:order, distributor: current_distributor)
allow(helper).to receive(:current_order) { order }
allow(helper).to receive(:spree_current_user) { nil }
expect(helper.inject_available_payment_methods).to match pm.id.to_s
expect(helper.inject_available_payment_methods).to match pm.name
end

it "injects current order" do
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit f7fab38

Please sign in to comment.