Sha256: cea09d8f88d38d2ae077f21ae53abefbdb56884e4dea980d5adb2cb9eb89e5eb

Contents?: true

Size: 447 Bytes

Versions: 1

Compression:

Stored size: 447 Bytes

Contents

require 'request_helper'
require 'mws/reports/requests/report_count'

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

  def setup
    @count = MWS::Reports::Requests::ReportCount.new(mock_client)
  end

  def test_gets_report_count
    res = @count.get
    assert_equal 1, res.count
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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