Sha256: 3b6a323e71e2a4397dd8cbdef2b795b09f837255ed9d656a0e86139363129e0a
Contents?: true
Size: 510 Bytes
Versions: 4
Compression:
Stored size: 510 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 ]) shipment.taxes_for_product('product-2').should == product_2 end end end end
Version data entries
4 entries across 4 versions & 1 rubygems