Sha256: be13c6aa0313edc18011db02124315306d971ea8262f893d4f4d15873dd11b4a
Contents?: true
Size: 1.58 KB
Versions: 7
Compression:
Stored size: 1.58 KB
Contents
# frozen_string_literal: true require 'helper' require 'mws/finances/client' class TestMWSFinancesClient < MiniTest::Test def setup @client = MWS::Finances::Client.new end def test_lists_financial_event_groups operation = { 'Action' => 'ListFinancialEventGroups', 'FinancialEventGroupStartedAfter' => '2015-01-01' } @client.stub(:run, nil) do @client.list_financial_event_groups('2015-01-01') end assert_equal operation, @client.operation end def test_lists_financial_event_groups_by_next_token operation = { 'Action' => 'ListFinancialEventGroupsByNextToken', 'NextToken' => '1' } @client.stub(:run, nil) do @client.list_financial_event_groups_by_next_token('1') end assert_equal operation, @client.operation end def test_lists_financial_events operation = { 'Action' => 'ListFinancialEvents', 'AmazonOrderId' => '123' } @client.stub(:run, nil) do @client.list_financial_events(amazon_order_id: '123') end assert_equal operation, @client.operation end def test_lists_financial_events_by_next_token operation = { 'Action' => 'ListFinancialEventsByNextToken', 'NextToken' => '1' } @client.stub(:run, nil) do @client.list_financial_events_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