test/remote/amazon_test.rb in active_fulfillment-0.10.0 vs test/remote/amazon_test.rb in active_fulfillment-1.0.0
- old
+ new
@@ -61,9 +61,21 @@
def test_list_orders
response = @service.fetch_current_orders
assert response.success?
end
+
+ def test_get_inventory
+ response = @service.fetch_stock_levels(:sku => '2R-JAXZ-P0IB')
+ assert response.success?
+ assert_equal 0, response.stock_levels['2R-JAXZ-P0IB']
+ end
+
+ def test_list_inventory
+ response = @service.fetch_stock_levels(:start_time => 1.year.ago)
+ assert response.success?
+ assert_equal 0, response.stock_levels['SETTLERS']
+ end
def test_valid_credentials
assert @service.valid_credentials?
end
\ No newline at end of file