Sha256: 023a02a8cc8eccc1ad3468d5048c1d2151aa5fe3356a099b328c63726f75bea2

Contents?: true

Size: 479 Bytes

Versions: 2

Compression:

Stored size: 479 Bytes

Contents

require 'parser_helper'
require 'mws/reports/parsers/report_requests'

class ReportRequestsParserTest < ParserTest
  def setup
    node = fixture('reports/report_requests').xpath('//xmlns:CancelReportRequestsResult')
    @cancelations = MWS::Reports::Parsers::ReportRequests.new(node)
  end

  def test_cancelation_count
    assert_kind_of Integer, @cancelations.count
  end

  def test_canceled_report_request_infos
    refute_empty @cancelations.report_request_infos
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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