Sha256: 8ef1690cd8fa7fa3256e4f74fd924cf4b1e30110bd0c1aedc80758dbac84696f
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("PR111001-1") listing.sku.should == "PR111001-1" listing.asin.should == "B00C81G378" end it "allows find by asin" do listings = @listing_set.find("B00C81G378") listings.should be_kind_of(Enumerable) listings.first.sku.should == "PR111001-1" listings.first.asin.should == "B00C81G378" 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.3.2 | spec/lib/listing_set_spec.rb |
amazon_seller_central-0.3.1 | spec/lib/listing_set_spec.rb |