Sha256: ed721eea6b00aae396d47fb3cc0799d66ca242f340d797881a706ef72cf350b1
Contents?: true
Size: 1.18 KB
Versions: 1
Compression:
Stored size: 1.18 KB
Contents
require 'test_helper' require 'mws/cart_information/client' class TestCartInformationClient < MiniTest::Test def setup @client = MWS::CartInformation::Client.new end def test_lists_carts operation = { 'Action' => 'ListCarts', 'DateRangeStart' => '1' } @client.stub(:run, nil) do @client.list_carts('1') end assert_equal operation, @client.operation end def test_lists_carts_by_next_token operation = { 'Action' => 'ListCartsByNextToken', 'NextToken' => '1' } @client.stub(:run, nil) do @client.list_carts_by_next_token('1') end assert_equal operation, @client.operation end def test_gets_carts operation = { 'Action' => 'GetCarts', 'MarketplaceId' => '1', 'CartIdList.CartId.1' => '2', 'CartIdList.CartId.2' => '3' } @client.stub(:run, nil) do @client.get_carts('1', '2', '3') 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_cart_information_client.rb |