Ensuring that backorders are disabled when testing quantity capping for standing orders

This commit is contained in:
Rob Harrington
2016-11-18 16:50:15 +11:00
parent 6cf23b46c5
commit 8c9765749e

View File

@@ -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)