Sha256: 78ab6bacaed999900d509faa7f53c9df487b434005c9e8dc9a81bc5eed5ec6fa

Contents?: true

Size: 435 Bytes

Versions: 2

Compression:

Stored size: 435 Bytes

Contents

require_relative 'test_helper'

class OrderItemsTest < IntegrationTest
  def sample_amazon_order_id(client)
    order = client.list_orders(created_after: Date.today - 365).to_a.sample
    order.amazon_order_id
  end

  def list_order_items
    @clients.each do |client|
      amazon_order_id = sample_amazon_order_id(client)
      order_items = client.list_order_items(amazon_order_id)
      refute_empty order_items
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mws-orders-0.0.2 test/integration/order_items_test.rb
mws-orders-0.0.1 test/integration/order_items_test.rb