Sha256: a43d749f660095c11f0f2b8003e7db4e3076478488eb3b548a1bbc299c3d585c
Contents?: true
Size: 1.06 KB
Versions: 2
Compression:
Stored size: 1.06 KB
Contents
require 'parser_helper' require 'mws/reports/parsers/report_request_info' class ReportRequestInfoParserTest < ParserTest def setup node = fixture('reports/report_request_list').xpath('//xmlns:ReportRequestInfo').first @request = MWS::Reports::Parsers::ReportRequestInfo.new(node) end def test_id assert_kind_of String, @request.id end def test_type assert_kind_of String, @request.type end def test_started_at assert_kind_of Time, @request.started_at end def test_ended_at assert_kind_of Time, @request.ended_at end def test_scheduled assert [true, false].include?(@request.scheduled?) end def test_submitted_at assert_kind_of Time, @request.submitted_at end def test_processing_status assert_kind_of String, @request.processing_status end def test_generated_report_id assert_kind_of String, @request.generated_report_id end def test_started_processing_at assert_kind_of Time, @request.started_processing_at end def test_completed_at assert_kind_of Time, @request.completed_at 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_info.rb |
peddler-0.6.4 | test/mws/reports/parsers/test_report_request_info.rb |