Sha256: 2ef814efd38c4a2eb006dd5c7732597da4a325e795e649c700196c939a31dfe9
Contents?: true
Size: 301 Bytes
Versions: 1
Compression:
Stored size: 301 Bytes
Contents
module PackageHelper def build_content_items(variant, quantity, order) quantity.times.map {|i| Spree::Stock::ContentItem.new(build_inventory_unit(variant, order)) } end def build_inventory_unit(variant, order) build(:inventory_unit, variant: variant, order: order) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solidus_active_shipping-1.0.0 | spec/support/package_helper.rb |