From fb3f35100f90be52f3ca71862555201e0ed076ff Mon Sep 17 00:00:00 2001 From: Luis Ramos Date: Thu, 15 Oct 2020 16:02:11 +0100 Subject: [PATCH] Remove specs related to subsclassing the order class This is not something we will do --- spec/models/spree/order/checkout_spec.rb | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/spec/models/spree/order/checkout_spec.rb b/spec/models/spree/order/checkout_spec.rb index bee9ef1caa..6d24512509 100644 --- a/spec/models/spree/order/checkout_spec.rb +++ b/spec/models/spree/order/checkout_spec.rb @@ -150,26 +150,6 @@ describe Spree::Order::Checkout do end end - context "subclassed order" do - # This causes another test above to fail, but fixing this test should make - # the other test pass - class SubclassedOrder < Spree::Order - checkout_flow do - go_to_state :payment - go_to_state :complete - end - end - - it "should only call default transitions once when checkout_flow is redefined" do - order = SubclassedOrder.new - allow(order).to receive_messages payment_required?: true - expect(order).to receive(:process_payments!).once - order.state = "payment" - order.next! - expect(order.state).to eq "complete" - end - end - describe 'event :restart_checkout' do let(:order) { build_stubbed(:order) }