Sha256: e6a1417eacff6a258ecf4f93f835f62e3b09f0042f7abb82a821ac8e453ae9ab
Contents?: true
Size: 567 Bytes
Versions: 6
Compression:
Stored size: 567 Bytes
Contents
require 'test_helper' class InventoryUnitTest < ActiveSupport::TestCase context InventoryUnit do setup do line_item = Factory(:line_item) @inventory_unit = Factory(:inventory_unit, :state => "on_hand", :variant => line_item.variant) @order = line_item.order.reload end context "when sold" do setup do InventoryUnit.sell_units(@order) @inventory_unit.reload end should "associate the inventory units with the order" do assert_equal @order, @inventory_unit.order end end end end
Version data entries
6 entries across 6 versions & 2 rubygems