Sha256: 2b3c2a2cd2a68197226e945d89914919c9cab3cc831645b308acf95cf4dfea1a

Contents?: true

Size: 707 Bytes

Versions: 1

Compression:

Stored size: 707 Bytes

Contents

require '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_creates_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_gets_service_status
    clients.each do |client|
      res = client.get_service_status
      refute_empty res.parse
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
peddler-0.14.0 test/integration/test_fulfillment_inbound_shipment.rb