mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Ensuring that backorders are disabled when testing quantity capping for standing orders
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user