def test_should_have_zero_for_weight_when_not_shipping
line_item = LineItem.new
line_item.build_delivery_method(:shipping => false)
assert_equal 0, line_item.weight
end
def test_should_have_weight_of_product_times_quantity_when_shipping
line_item = LineItem.new(:quantity => 3)
line_item.build_delivery_method(:shipping => true)
line_item.build_product(:weight => 5)
assert_equal 15, line_item.weight
end