Prospective fix for intermittent spec fail

This commit is contained in:
Rohan Mitchell
2016-04-21 09:54:56 +10:00
parent 5151779f80
commit 06d7665bf9

View File

@@ -50,6 +50,7 @@ describe Spree::OrdersController do
let(:line_item) { order.line_items.last }
before do
Spree::Config.allow_backorders = false
order.set_distribution! d, oc
order.add_variant variant, 5
variant.update_attributes! on_hand: 3