Sha256: 702a3180e1bd26564cc6fd540b6f0fb03bc03188ca328220f8e17c1ec63aa5fb

Contents?: true

Size: 698 Bytes

Versions: 2

Compression:

Stored size: 698 Bytes

Contents

require 'parser_helper'
require 'mws/sellers/parsers/marketplace_participations'

class SellerMarketParticipationsParserTest < ParserTest
  def setup
    node = fixture('sellers/market_participations').xpath('//xmlns:ListMarketplaceParticipationsResult')
    @mp = MWS::Sellers::Parsers::MarketplaceParticipations.new(node)
  end

  def test_has_marketplaces
    refute_empty @mp.marketplaces
    @mp.marketplaces.each { |marketplace| assert_kind_of MWS::Sellers::Parsers::Marketplace, marketplace }
  end

  def test_has_participations
    refute_empty @mp.participations
    @mp.participations.each { |participation| assert_kind_of MWS::Sellers::Parsers::Participation, participation }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
peddler-0.6.5 test/mws/sellers/parsers/test_market_participations.rb
peddler-0.6.4 test/mws/sellers/parsers/test_market_participations.rb