Sha256: f2139b1d865e46cc391f416f09bdc2f6685af426e67b0d12469149262be3bd94

Contents?: true

Size: 501 Bytes

Versions: 5

Compression:

Stored size: 501 Bytes

Contents

require 'request_helper'
require 'mws/feeds/requests/feed_submission_count'

class FeedSubmissionCountRequestTest < RequestTest
  def mock_response_body
    <<-EOF
      <Response xmlns="ns">
        <Result>
          <Count>1</Count>
        </Response>
      </Result>
    EOF
  end

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

  def test_gets_feed_submission_count
    res = @feeds.get(submitted_from_date: 0)
    assert_equal 1, res.count
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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