Sha256: 09b840bc28b22a1892dc90ed7ccbf4e3068d50fe85249842950a20e130f1d0d7
Contents?: true
Size: 437 Bytes
Versions: 62
Compression:
Stored size: 437 Bytes
Contents
require 'test_helper' module Workarea module Inventory module Policies class StandardTest < TestCase def test_available_to_sell sku = create_inventory(available: 5, reserve: 3) policy = Standard.new(sku) assert_equal(2, policy.available_to_sell) sku.update_attributes(available: 1) assert_equal(0, policy.available_to_sell) end end end end end
Version data entries
62 entries across 62 versions & 1 rubygems