require 'request_helper' require 'mws/reports/requests/report_request' class ReportRequestSubmitTest < RequestTest def mock_response_body <<-EOF 2291326454 _GET_MERCHANT_LISTINGS_DATA_ 2009-01-21T02:10:39+00:00 2009-02-13T02:10:39+00:00 false 2009-02-20T02:10:39+00:00 _SUBMITTED_ EOF end def setup @report_request = MWS::Reports::Requests::ReportRequest.new(mock_client) end def test_submits_report_request res = @report_request.submit('_GET_MERCHANT_LISTINGS_DATA_') assert_kind_of MWS::Reports::Parsers::ReportRequest, res end end