Sha256: d3442a025b18a3db17ff74d73770fe8641b84123741f90d3efa1886c319d738a
Contents?: true
Size: 1.13 KB
Versions: 1
Compression:
Stored size: 1.13 KB
Contents
require 'request_helper' require 'mws/feeds/requests/feed_submission_list' class FeedSubmissionListRequestTest < RequestTest def mock_response_body <<-EOF <Response xmlns="ns"> <Result> <NextToken>123</NextToken> <FeedSubmissionInfo> <FeedSubmissionId>123456</FeedSubmissionId> <FeedType>_POST_PRODUCT_DATA_</FeedType> <SubmittedDate>2009-02-20T02:10:35+00:00</SubmittedDate> <FeedProcessingStatus>_SUBMITTED_</FeedProcessingStatus> </FeedSubmissionInfo> </Result> </Response> EOF end def setup @feeds = MWS::Feeds::Requests::FeedSubmissionList.new(mock_client) end def test_gets_feed_submission_list res = @feeds.get(submitted_from_date: 0) assert_kind_of MWS::Feeds::Parsers::FeedSubmissionList, res end def test_gets_feed_submission_list_by_next_token mock_parsed_response = MiniTest::Mock.new mock_parsed_response.expect(:next_token, '123') @feeds.last_parsed_response = mock_parsed_response res = @feeds.get_by_next_token assert_kind_of MWS::Feeds::Parsers::FeedSubmissionList, res end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
peddler-0.6.5 | test/mws/feeds/requests/test_feed_submission_list.rb |