mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Update test setup in Packer spec.
This is the correct way to set a variant's weight.
This commit is contained in:
@@ -10,7 +10,7 @@ module OrderManagement
|
||||
|
||||
subject { Packer.new(stock_location, order) }
|
||||
|
||||
before { order.line_items.first.variant.weight = 1 }
|
||||
before { order.line_items.first.variant.update(unit_value: 100) }
|
||||
|
||||
it 'builds a package with all the items' do
|
||||
package = subject.package
|
||||
|
||||
Reference in New Issue
Block a user