Sha256: 71e290cecded30d5e92b112eb21279e17217391dcc190301079e1a0ada0a5043
Contents?: true
Size: 1.06 KB
Versions: 2
Compression:
Stored size: 1.06 KB
Contents
# frozen_string_literal: true require 'integration_helper' require 'mws/fulfillment_inbound_shipment' class TestFulfillmentInboundShipment < IntegrationTest Address = Struct.new(:name, :address_line_1, :city, :state_or_province_code, :postal_code, :country_code) Item = Struct.new(:seller_sku, :quantity) def test_creating_inbound_shipment_plan address = Address.new('John', '1 Main St', 'New York', 'NY', '10001', 'US') item = Item.new('123', 1) clients.each do |client| res = client.create_inbound_shipment_plan(address, [item]) refute_empty res.parse end end def test_getting_service_status clients.each do |client| res = client.get_service_status refute_empty res.parse end end def test_handling_large_requests address = Address.new('John', '1 Main St', 'New York', 'NY', '10001', 'US') items = Array.new(100) { |i| Item.new(i, 1) } clients.each do |client| res = client.create_inbound_shipment_plan(address, items) assert_equal 200, res.status end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
peddler-2.1.1 | test/integration/test_fulfillment_inbound_shipment.rb |
peddler-2.1.0 | test/integration/test_fulfillment_inbound_shipment.rb |