Sha256: 550e9e6af3d0f1780f57eb26237d17c8e9b2ab0907a0ca42cc718f64ca3a0637
Contents?: true
Size: 1022 Bytes
Versions: 7
Compression:
Stored size: 1022 Bytes
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_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
7 entries across 7 versions & 1 rubygems