Sha256: 2bce74a75d3f4ff509266ba0019cdd44ea88ba4c9ada05fe22c0049c9052da7f

Contents?: true

Size: 729 Bytes

Versions: 2

Compression:

Stored size: 729 Bytes

Contents

require "spec_helper"

module Sucker
  describe "Seller listing search" do
    use_vcr_cassette "integration/seller_listings_search", :record => :new_episodes

    let(:listings) do
      worker = Sucker.new(
        :locale => "us",
        :key    => amazon["key"],
        :secret => amazon["secret"])

      worker << {
        "Operation"   => "SellerListingSearch",
        "SellerId"    => "A2JYSO6W6KEP83" }

      worker.get.find("SellerListings").first
    end

    it "returns page count" do
      listings["TotalPages"].to_i.should be > 0
    end

    it "returns listings" do
      listings["SellerListing"].size.should be > 0
      listings["SellerListing"].first.has_key?("Price").should be_true
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sucker-1.0.0.beta.4 spec/integration/seller_listing_search_spec.rb
sucker-1.0.0.beta.3 spec/integration/seller_listing_search_spec.rb