Sha256: c16f5b653e3237ee24a432cb1f75fcd81425f397fb2c80500966b9e47307a8d7
Contents?: true
Size: 713 Bytes
Versions: 1
Compression:
Stored size: 713 Bytes
Contents
# frozen_string_literal: true require 'test_helper' class TestMWSOrders < MiniTest::Test def setup skip unless ENV['AWS_ACCESS_KEY_ID'] @client = MWS.orders end def test_gets_service_status assert_kind_of ServiceStatus, @client.get_service_status.parse end def test_lists_orders_and_their_items orders = @client.list_orders(created_after: one_year_ago).parse refute_empty orders amazon_order_id = orders.to_a.sample.amazon_order_id assert_kind_of MWS::Orders::Order, @client.get_order(amazon_order_id).parse order_items = @client.list_order_items(amazon_order_id).parse refute_empty order_items end private def one_year_ago Date.today - 365 end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mws-orders-0.3.0 | test/integration/test_mws_orders.rb |