Sha256: 6165d6043024146995e50bc81a224fd31c5e35d8195b1ed28ab6c5337125723e

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>
        </Result>
      </Response>
    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.5 test/mws/reports/requests/test_report_count.rb