Sha256: 5ef0ac3197171dc5a507d552c070e0d2d14e1a2ca1c8dc4f093ecc06673e03d2
Contents?: true
Size: 993 Bytes
Versions: 1
Compression:
Stored size: 993 Bytes
Contents
require 'test_helper' require 'mws/fulfillment_inventory/client' class TestFulfillmentInventoryClient < MiniTest::Test def setup @client = MWS::FulfillmentInventory::Client.new end def test_lists_inventory_supply operation = { 'Action' => 'ListInventorySupply', 'SellerSkus.member.1' => '1' } @client.stub(:run, nil) do @client.list_inventory_supply(seller_skus: '1') end assert_equal operation, @client.operation end def test_lists_inventory_supply_by_next_token operation = { 'Action' => 'ListInventorySupplyByNextToken', 'NextToken' => '1' } @client.stub(:run, nil) do @client.list_inventory_supply_by_next_token('1') end assert_equal operation, @client.operation end def test_gets_service_status operation = { 'Action' => 'GetServiceStatus' } @client.stub(:run, nil) do @client.get_service_status end assert_equal operation, @client.operation end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
peddler-0.12.5 | test/unit/mws/test_fulfillment_inventory_client.rb |