Sha256: ed0ca65c5649cda26e55f1e1ef8ede419e99933277232e5e3ed31ba126d155fc

Contents?: true

Size: 991 Bytes

Versions: 23

Compression:

Stored size: 991 Bytes

Contents

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

23 entries across 23 versions & 1 rubygems

Version Path
peddler-1.6.3 test/unit/mws/test_fulfillment_inventory_client.rb
peddler-1.6.2 test/unit/mws/test_fulfillment_inventory_client.rb
peddler-1.6.1 test/unit/mws/test_fulfillment_inventory_client.rb
peddler-1.6.0 test/unit/mws/test_fulfillment_inventory_client.rb
peddler-1.5.0 test/unit/mws/test_fulfillment_inventory_client.rb
peddler-1.4.1 test/unit/mws/test_fulfillment_inventory_client.rb
peddler-1.4.0 test/unit/mws/test_fulfillment_inventory_client.rb
peddler-1.3.0 test/unit/mws/test_fulfillment_inventory_client.rb
peddler-1.2.0 test/unit/mws/test_fulfillment_inventory_client.rb
peddler-1.1.1 test/unit/mws/test_fulfillment_inventory_client.rb
peddler-1.1.0 test/unit/mws/test_fulfillment_inventory_client.rb
peddler-1.0.2 test/unit/mws/test_fulfillment_inventory_client.rb
peddler-1.0.1 test/unit/mws/test_fulfillment_inventory_client.rb
peddler-1.0.0 test/unit/mws/test_fulfillment_inventory_client.rb
peddler-0.19.0 test/unit/mws/test_fulfillment_inventory_client.rb
peddler-0.18.0 test/unit/mws/test_fulfillment_inventory_client.rb
peddler-0.17.1 test/unit/mws/test_fulfillment_inventory_client.rb
peddler-0.17.0 test/unit/mws/test_fulfillment_inventory_client.rb
peddler-0.16.0 test/unit/mws/test_fulfillment_inventory_client.rb
peddler-0.15.0 test/unit/mws/test_fulfillment_inventory_client.rb