Sha256: fe55636e4c21b2416fb5da0500e76d9d2968400ff4f22aefaca36624d48024ec

Contents?: true

Size: 467 Bytes

Versions: 2

Compression:

Stored size: 467 Bytes

Contents

# frozen_string_literal: true

require 'test_helper'

class TestOrderItems < MiniTest::Test
  def setup
    node = load_xml_fixture('order_items').xpath('//xmlns:ListOrderItemsResult')
    @order_items = OrderItems.new(node)
  end

  def test_has_order_items
    refute_empty @order_items.to_a
    @order_items.each do |order_item|
      assert_kind_of OrderItem, order_item
    end
  end

  def test_has_next_token
    refute_empty @order_items.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_order_items.rb
mws-orders-0.3.0 test/mws/orders/test_order_items.rb