test/integration/test_orders.rb in peddler-1.6.7 vs test/integration/test_orders.rb in peddler-2.0.0
- old
+ new
@@ -4,10 +4,11 @@
require 'mws/orders'
class TestOrders < IntegrationTest
def test_gets_orders
clients.each do |client|
- order_ids = client.list_orders(created_after: Date.new(2015),
+ 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