Sha256: d5bcab7f021ea9a782ed43d6c59e71a1b1afe9ee54e1d22f2e78c6562bb7aeb1
Contents?: true
Size: 1.08 KB
Versions: 10
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("PR68921-11") listing.sku.should == "PR68921-11" listing.asin.should == "B003WFLGLM" end it "allows find by asin" do listings = @listing_set.find("B003WFLGLM") listings.should be_kind_of(Enumerable) listings.first.sku.should == "PR68921-11" listings.first.asin.should == "B003WFLGLM" 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
10 entries across 10 versions & 1 rubygems