Sha256: 6800c890d8e1aded585bdb3547512cb6233fd55ee40546a10b326ccb6f35e864

Contents?: true

Size: 522 Bytes

Versions: 2

Compression:

Stored size: 522 Bytes

Contents

require 'parser_helper'
require 'mws/reports/parsers/report_request_list'

class ReportRequestListParserTest < ParserTest
  def setup
    node = fixture('reports/report_request_list').xpath('//xmlns:GetReportRequestListResult')
    @list = MWS::Reports::Parsers::ReportRequestList.new(node)
  end

  def test_has_report_requests
    refute_empty @list.to_a
    @list.each { |request| assert_kind_of MWS::Reports::Parsers::ReportRequestInfo, request }
  end

  def test_has_token
    assert @list.has_next_token?
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
peddler-0.6.5 test/mws/reports/parsers/test_report_request_list.rb
peddler-0.6.4 test/mws/reports/parsers/test_report_request_list.rb