diff --git a/spec/jobs/standing_order_placement_job_spec.rb b/spec/jobs/standing_order_placement_job_spec.rb index b8636a1bc0..6f7676b0a9 100644 --- a/spec/jobs/standing_order_placement_job_spec.rb +++ b/spec/jobs/standing_order_placement_job_spec.rb @@ -39,6 +39,7 @@ describe StandingOrderPlacementJob do let(:line_item3) { create(:line_item, order: order, variant: variant3, quantity: 0) } before do + Spree::Config.set(:allow_backorders, false) line_item1.update_attribute(:quantity, 3) line_item2.update_attribute(:quantity, 3) line_item3.update_attribute(:quantity, 3)