Sha256: 3eceee99f67773790e7c8edf16f5c6e6561537f874066ea5a2b65b3b70a2e2ca

Contents?: true

Size: 835 Bytes

Versions: 5

Compression:

Stored size: 835 Bytes

Contents

require 'request_helper'
require 'mws/feeds/requests/feed_submissions'

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

  def setup
    @feeds = MWS::Feeds::Requests::FeedSubmissions.new(mock_client)
  end

  def test_cancels_feedback_submissions
    res = @feeds.cancel(submitted_from_date: 0)
    assert_kind_of MWS::Feeds::Parsers::FeedSubmissions, res
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
peddler-0.6.4 test/mws/feeds/requests/test_feed_submissions.rb
peddler-0.6.3 test/mws/feeds/requests/test_feed_submissions.rb
peddler-0.6.2 test/mws/feeds/requests/test_feed_submissions.rb
peddler-0.6.1 test/mws/feeds/requests/test_feed_submissions.rb
peddler-0.6.0 test/mws/feeds/requests/test_feed_submissions.rb