Sha256: a41c0e088a72d9a22c3fc1662a2e29ac9614a2467e600f857fb3e4a3ce220b3f
Contents?: true
Size: 689 Bytes
Versions: 1
Compression:
Stored size: 689 Bytes
Contents
require "test_helper" class TestIntegration < MiniTest::Test def setup skip if ENV['CI'] @client = MWS.orders end def test_gets_service_status assert_kind_of ServiceStatus, @client.get_service_status end def test_lists_orders_and_order_items orders = @client.list_orders(created_after: Date.today - 30) refute_empty orders next_orders = @client.list_orders_by_next_token(orders.next_token) refute_empty orders amazon_order_id = next_orders.to_a.sample.amazon_order_id assert_kind_of MWS::Orders::Order, @client.get_order(amazon_order_id) order_items = @client.list_order_items(amazon_order_id) refute_empty order_items end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mws-orders-0.1.0 | test/integration/test_integration.rb |