Sha256: 4f15fdc0768a4d5ecb182bb85f384cfb9bf1eb44aa14d50d12e3d61e4f6fde54

Contents?: true

Size: 411 Bytes

Versions: 2

Compression:

Stored size: 411 Bytes

Contents

# frozen_string_literal: true

require 'test_helper'

class TestOrders < MiniTest::Test
  def setup
    node = load_xml_fixture('orders').xpath('//xmlns:ListOrdersResult')
    @orders = Orders.new(node)
  end

  def test_has_orders
    refute_empty @orders.to_a
    @orders.each do |order|
      assert_kind_of Order, order
    end
  end

  def test_has_next_token
    refute_empty @orders.next_token
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mws-orders-0.3.1 test/mws/orders/test_orders.rb
mws-orders-0.3.0 test/mws/orders/test_orders.rb