require 'request_helper' require 'mws/reports/requests/report_scheduler' class ReportSchedulerRequestTest < RequestTest def mock_response_body <<-EOF 1 _GET_ORDERS_DATA_ _30_DAYS_ 2009-02-20T02:10:42+00:00 EOF end def setup @scheduler = MWS::Reports::Requests::ReportScheduler.new(mock_client) end def test_manages_report_schedule res = @scheduler.manage('_GET_ORDERS_DATA_', '_1_HOUR_') assert_kind_of MWS::Reports::Parsers::ReportScheduler, res end def test_deletes_report_schedule res = @scheduler.delete('_GET_ORDERS_DATA_') assert_kind_of MWS::Reports::Parsers::ReportScheduler, res end end