Sha256: 8a12d86540da29ea2338baf610b89427c62c5da0ce94edfec7ab51330cf23736
Contents?: true
Size: 1.14 KB
Versions: 1
Compression:
Stored size: 1.14 KB
Contents
require 'helper' require 'mws/sellers/client' class TestMWSSellersClient < MiniTest::Test def setup @client = MWS::Sellers::Client.new end def test_lists_marketplace_participations operation = { 'Action' => 'ListMarketplaceParticipations' } @client.stub(:run, nil) do @client.list_marketplace_participations end assert_equal operation, @client.operation end def test_lists_marketplace_participations_by_next_token operation = { 'Action' => 'ListMarketplaceParticipationsByNextToken', 'NextToken' => '1' } @client.stub(:run, nil) do @client.list_marketplace_participations_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 def test_gets_auth_token operation = { 'Action' => 'GetAuthToken' } @client.stub(:run, nil) do @client.get_auth_token end assert_equal operation, @client.operation end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
peddler-0.16.0 | test/unit/mws/test_sellers_client.rb |