Sha256: 697621b48178c39f8f7b4784153149f3f11574545b04836a6767c246a271f9d8

Contents?: true

Size: 501 Bytes

Versions: 1

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>
        </Result>
      </Response>
    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

1 entries across 1 versions & 1 rubygems

Version Path
peddler-0.6.5 test/mws/feeds/requests/test_feed_submission_count.rb