Sha256: 04583d103e228638f7df66c30412ceca78d425b0ba87a52e137d55cd30c1a329
Contents?: true
Size: 1.08 KB
Versions: 2
Compression:
Stored size: 1.08 KB
Contents
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe "ListingSet" do before :all do @listing_set = AmazonSellerCentral::Inventory.load_first_page.listings end it "is an enumerable" do @listing_set.should be_kind_of(Enumerable) end it "allows find by sku" do listing = @listing_set.find("PR37307-11") listing.sku.should == "PR37307-11" listing.asin.should == "B000YA1XU2" end it "allows find by asin" do listings = @listing_set.find("B000RH3W9M") listings.should be_kind_of(Enumerable) listings.first.sku.should == "PR48352-2" listings.first.asin.should == "B000RH3W9M" end # it "allows where by quantity" do # pending "When I need this, just thoughts for now" # @listing_set.where(:quantity => 1) # end # it "allows where by price" do # pending "When I need this, just thoughts for now" # @listing_set.where(:price => 75.79) # end # it "allows where with gt, lt" do # pending "When I need this, just thoughts for now" # @listing_set.where(:price.gt => 10, :price.lt => 40) # end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
amazon_seller_central-0.2.4 | spec/lib/listing_set_spec.rb |
amazon_seller_central-0.2.3 | spec/lib/listing_set_spec.rb |