Sha256: a405a1aef07c1354533e59d68e9d1923e1bada7dca0cc185229c6562c6ea6d6d
Contents?: true
Size: 800 Bytes
Versions: 2
Compression:
Stored size: 800 Bytes
Contents
# frozen_string_literal: true require 'integration_helper' require 'mws/orders' class TestOrders < IntegrationTest def test_gets_orders clients.each do |client| order_ids = client.list_orders(client.marketplace.id, created_after: Date.new(2015), max_results_per_page: 5) .dig('Orders', 'Order') .map { |order| order['AmazonOrderId'] } next if order_ids.count < 2 res = client.get_order(*order_ids) orders = res.dig('Orders', 'Order') assert_equal order_ids.count, orders.count end end def test_gets_service_status clients.each do |client| res = client.get_service_status refute_empty res.parse end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
peddler-2.0.4 | test/integration/test_orders.rb |
peddler-2.0.3 | test/integration/test_orders.rb |