Sha256: 716f07672794e0a3d4f217c177d4986e9eec1a8bde4a724220831bbd51908bbf
Contents?: true
Size: 1 KB
Versions: 2
Compression:
Stored size: 1 KB
Contents
# frozen_string_literal: true require 'helper' require 'mws/fulfillment_inventory/client' class TestMWSFulfillmentInventoryClient < MiniTest::Test def setup @client = MWS::FulfillmentInventory::Client.new end def test_listing_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_listing_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_getting_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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
peddler-2.1.1 | test/unit/mws/test_fulfillment_inventory_client.rb |
peddler-2.1.0 | test/unit/mws/test_fulfillment_inventory_client.rb |