Sha256: e30558e2ede28f4c6be2ec3c22a1e287497d0b4de89f37b135ea667f3726eab9
Contents?: true
Size: 608 Bytes
Versions: 2
Compression:
Stored size: 608 Bytes
Contents
require 'test_helper' module Workarea module Inventory class BundleSkuTest < TestCase def test_component_inventory sku = create_inventory assert_equal([], sku.component_inventory) sku.update!(component_quantities: { 'BSKU1' => 1, 'BSKU2' => 2 }) assert_equal([], sku.component_inventory) component_sku_1 = create_inventory(id: 'BSKU1') component_sku_2 = create_inventory(id: 'BSKU2') assert_includes(sku.component_inventory, component_sku_1) assert_includes(sku.component_inventory, component_sku_2) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
workarea-product_bundles-1.0.1 | test/models/workarea/inventory/bundle_sku_test.rb |
workarea-product_bundles-1.0.0 | test/models/workarea/inventory/bundle_sku_test.rb |