Sha256: 71559f375b9cdd3acdffaaddaa8c5835dcb4d35cbf3d8dd60b71f64f68d22091

Contents?: true

Size: 837 Bytes

Versions: 2

Compression:

Stored size: 837 Bytes

Contents

require 'request_helper'
require 'mws/reports/requests/report_requests'

class ReportRequestsRequesttTest < RequestTest
  def mock_response_body
    <<-EOF
      <Response xmlns="ns">
        <Result>
          <Count>1</Count>
          <ReportRequestInfo>
            <ReportRequestId>123456</ReportRequestId>
            <FeedType>_POST_PRODUCT_DATA_</FeedType>
            <SubmittedDate>2009-02-20T02:10:35+00:00</SubmittedDate>
            <FeedProcessingStatus>_CANCELLED_</FeedProcessingStatus>
          </ReportRequestInfo>
        </Result>
      </Response>
    EOF
  end

  def setup
    @reports = MWS::Reports::Requests::ReportRequests.new(mock_client)
  end

  def test_cancels_feedback_submissions
    res = @reports.cancel(submitted_from_date: 0)
    assert_kind_of MWS::Reports::Parsers::ReportRequests, res
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
peddler-0.6.5 test/mws/reports/requests/test_report_requests.rb
peddler-0.6.4 test/mws/reports/requests/test_report_requests.rb