Update test setup in Packer spec.

This is the correct way to set a variant's weight.
This commit is contained in:
Matt-Yorkley
2020-11-21 12:35:55 +00:00
parent 2b2f1ac0cd
commit d299c8cf01

View File

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