Sha256: d0132997766fc8927ba01654bde59640bbb1fb0819f8f2de1ae46087dc81eabd
Contents?: true
Size: 681 Bytes
Versions: 4
Compression:
Stored size: 681 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 ) .dig('Orders', 'Order') .map { |order| order['AmazonOrderId'] } next if order_ids.count < 2 orders = client .get_order(*order_ids) .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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
peddler-1.6.3 | test/integration/test_orders.rb |
peddler-1.6.2 | test/integration/test_orders.rb |
peddler-1.6.1 | test/integration/test_orders.rb |
peddler-1.6.0 | test/integration/test_orders.rb |