Sha256: 24c66a98e189b758e0386d5d11c3f0097c1d47f66cc962af4b2099b82846b2a2
Contents?: true
Size: 711 Bytes
Versions: 3
Compression:
Stored size: 711 Bytes
Contents
require 'integration_helper' require 'mws/orders' class TestOrders < IntegrationTest def test_gets_orders clients.each do |client| order_ids = client .list_orders( created_after: Date.new(2015), 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') 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
peddler-1.5.0 | test/integration/test_orders.rb |
peddler-1.4.1 | test/integration/test_orders.rb |
peddler-1.4.0 | test/integration/test_orders.rb |