Sha256: a00b4c9dd3962d05d93fa51f729031bd4d6128e62ed64e055f70730e50bc979f

Contents?: true

Size: 380 Bytes

Versions: 4

Compression:

Stored size: 380 Bytes

Contents

require 'parser_helper'
require 'mws/orders/parsers/orders'

class OrdersParserTest < ParserTest
  def setup
    node = fixture('orders/orders').xpath('//xmlns:ListOrdersResult')
    @orders = MWS::Orders::Parsers::Orders.new(node)
  end

  def test_has_orders
    refute_empty @orders.to_a
    @orders.each { |order| assert_kind_of MWS::Orders::Parsers::Order, order }
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
peddler-0.6.3 test/mws/orders/parsers/test_orders.rb
peddler-0.6.2 test/mws/orders/parsers/test_orders.rb
peddler-0.6.1 test/mws/orders/parsers/test_orders.rb
peddler-0.6.0 test/mws/orders/parsers/test_orders.rb