test/integration/test_orders.rb in peddler-1.3.0 vs test/integration/test_orders.rb in peddler-1.4.0

- old
+ new

@@ -1,6 +1,6 @@ -require 'helper' +require 'integration_helper' require 'mws/orders' class TestOrders < IntegrationTest def test_gets_orders clients.each do |client| @@ -10,9 +10,11 @@ max_results_per_page: 5 ) .parse .dig('Orders', 'Order') .map { |order| order['AmazonOrderId'] } + + next if order_ids.count < 2 orders = client .get_order(*order_ids) .parse .dig('Orders', 'Order')