Sha256: 00142b2456f0b727656ce3370d3588f0dcacb30f0e6b400b77ebf1e995254920

Contents?: true

Size: 515 Bytes

Versions: 2

Compression:

Stored size: 515 Bytes

Contents

require 'parser_helper'
require 'mws/reports/parsers/report_schedule_list'

class ReportScheduleListParserTest < ParserTest
  def setup
    node = fixture('reports/report_schedule_list').xpath('//xmlns:GetReportScheduleListResult')
    @list = MWS::Reports::Parsers::ReportScheduleList.new(node)
  end

  def test_has_report_schedules
    refute_empty @list.to_a
    @list.each { |rs| assert_kind_of MWS::Reports::Parsers::ReportSchedule, rs }
  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_schedule_list.rb
peddler-0.6.4 test/mws/reports/parsers/test_report_schedule_list.rb