Sha256: a11065f953e9b36e53035685e28fe68accf2831a30d4ea5c6b5a49fdc07600f0
Contents?: true
Size: 1.08 KB
Versions: 3
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("PR24386-11") listing.sku.should == "PR24386-11" listing.asin.should == "B000MFORRA" end it "allows find by asin" do listings = @listing_set.find("B002QEBM96") listings.should be_kind_of(Enumerable) listings.first.sku.should == "PR23923-11" listings.first.asin.should == "B002QEBM96" 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
amazon_seller_central-0.2.7 | spec/lib/listing_set_spec.rb |
amazon_seller_central-0.2.6 | spec/lib/listing_set_spec.rb |
amazon_seller_central-0.2.5 | spec/lib/listing_set_spec.rb |