mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Fix order spec restart checkout test by adding a required line_item to the order being tested
This commit is contained in:
@@ -821,7 +821,7 @@ describe Spree::Order do
|
||||
end
|
||||
|
||||
describe '#restart_checkout!' do
|
||||
let(:order) { build(:order) }
|
||||
let(:order) { build(:order, line_items: [build(:line_item)]) }
|
||||
|
||||
context 'when the order is complete' do
|
||||
before { order.completed_at = Time.zone.now }
|
||||
|
||||
Reference in New Issue
Block a user