Sha256: f1332e0660df46a0e4c868eb4500c3aa0befc4e29a5bebe85373b838074a411b
Contents?: true
Size: 515 Bytes
Versions: 1
Compression:
Stored size: 515 Bytes
Contents
require "spec_helper" module ShipCompliant describe ShipmentSalesTaxRate do context "taxes_for_product" do it "returns product sales tax rate" do product_1, product_2, product_3 = [1, 2, 3].map { |p_id| ProductSalesTaxRate.new(product_key: "product-#{p_id}") } shipment = ShipmentSalesTaxRate.new(nil, nil, [ product_1, product_2, product_3 ]) expect(shipment.taxes_for_product('product-2')).to eq(product_2) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ship_compliant-0.2.1 | spec/lib/ship_compliant/shipment_sales_tax_rate_spec.rb |