spec/ruby-mws/api/inventory_spec.rb in ruby-mws-0.0.4 vs spec/ruby-mws/api/inventory_spec.rb in ruby-mws-0.1

- old
+ new

@@ -3,24 +3,23 @@ describe MWS::API::Inventory do before :all do EphemeralResponse.activate @mws = MWS.new(auth_params) - @timestamp = "2012-04-25T21:42:11-04:00" end context "requests" do describe "list_inventory_supply" do it "should return items based on seller SKUs" do - items = @mws.inventory.list_inventory_supply :timestamp => @timestamp, + items = @mws.inventory.list_inventory_supply :timestamp => timestamp, :seller_skus => %w[PF-5VZN-04XR V4-03EY-LAL1 OC-TUKC-031P] items.should have_key :inventory_supply_list items.inventory_supply_list.should be_an_instance_of Array end it "should return items with inventory changes since a certain time" do - items = @mws.inventory.list_inventory_supply :timestamp => @timestamp, + items = @mws.inventory.list_inventory_supply :timestamp => timestamp, :query_start_date_time => "2012-01-15T10:04:01-05:00" items.should have_key :inventory_supply_list items.inventory_supply_list.should be_an_instance_of Array end end \ No newline at end of file