Sha256: 28c22754d46f017b889cf5dbc39814c21777e3b095f484bcdfc146964f8c7869

Contents?: true

Size: 625 Bytes

Versions: 2

Compression:

Stored size: 625 Bytes

Contents

require 'parser_helper'
require 'mws/reports/parsers/report_info'

class ReportInfoParserTest < ParserTest
  def setup
    node = fixture('reports/report_list').xpath('//xmlns:ReportInfo').first
    @report = MWS::Reports::Parsers::ReportInfo.new(node)
  end

  def test_id
    assert_kind_of String, @report.id
  end

  def test_type
    assert_kind_of String, @report.type
  end

  def test_request_id
    assert_kind_of String, @report.request_id
  end

  def test_available_at
    assert_kind_of Time, @report.available_at
  end

  def test_acknowledged
    assert [true, false].include?(@report.acknowledged?)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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