Sha256: 46d77df2acc39722cc29879e5e5a61ddf457d53efa86f65a2115b97f35673993
Contents?: true
Size: 938 Bytes
Versions: 2
Compression:
Stored size: 938 Bytes
Contents
require 'request_helper' require 'mws/reports/requests/report_schedule_list' class ReportScheduleListRequestTest < RequestTest def mock_response_body <<-EOF <Response xmlns="ns"> <Result> <NextToken></NextToken> <HasNext>false</HasNext> <ReportRequestInfo> <ReportSchedule> <ReportType>_GET_ORDERS_DATA_</ReportType> <Schedule>_30_DAYS_</Schedule> <ScheduledDate>2009-02-20T02:10:42+00:00</ScheduledDate> </ReportSchedule> </Result> </Response> EOF end def setup @list = MWS::Reports::Requests::ReportScheduleList.new(mock_client) end def test_gets_report_request_list res = @list.get assert_kind_of MWS::Reports::Parsers::ReportScheduleList, res end def test_gets_report_request_list_by_next_token assert_raises(NotImplementedError) { @list.get_by_next_token } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
peddler-0.6.5 | test/mws/reports/requests/test_report_schedule_list.rb |
peddler-0.6.4 | test/mws/reports/requests/test_report_schedule_list.rb |