Sha256: 662c171c52d8c9210bd4483a192041cd824fc5ee223c7cae649469acaba2b0ea

Contents?: true

Size: 436 Bytes

Versions: 4

Compression:

Stored size: 436 Bytes

Contents

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

4 entries across 4 versions & 1 rubygems

Version Path
mws-orders-0.2.1 test/mws/orders/test_order_items.rb
mws-orders-0.2.0 test/mws/orders/test_order_items.rb
mws-orders-0.1.1 test/mws/orders/test_order_items.rb
mws-orders-0.1.0 test/mws/orders/test_order_items.rb