Sha256: 23036e425d8415142770f55c7f32f5c7d7df1fe8eefd829bde4239c10f2e28e2

Contents?: true

Size: 463 Bytes

Versions: 1

Compression:

Stored size: 463 Bytes

Contents

# frozen_string_literal: true

require 'test_helper'

class TestOrderItems < MiniTest::Test
  def setup
    node = load_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

1 entries across 1 versions & 1 rubygems

Version Path
mws-orders-0.4.0 test/mws/orders/test_order_items.rb