Sha256: 9be27117a1545b9816ab82feb888ee48646cf0a37d5cf108f5be9604130f4939

Contents?: true

Size: 1.27 KB

Versions: 12

Compression:

Stored size: 1.27 KB

Contents

require 'integration_helper'
require 'mws/products'

class ProductsTest < IntegrationTest
  def test_lists_matching_products
    clients.each do |client|
      res = client.list_matching_products('architecture')
      refute_empty res.parse
    end
  end

  def test_gets_matching_product
    clients.each do |client|
      res = client.get_matching_product('1780935374')
      refute_empty res.parse
    end
  end

  def test_gets_matching_product_for_id
    clients.each do |client|
      res = client.get_matching_product_for_id('ISBN', '9781780935379')
      refute_empty res.parse
    end
  end

  def test_gets_competitive_pricing_for_asin
    clients.each do |client|
      res = client.get_competitive_pricing_for_asin('1780935374')
      refute_empty res.parse
    end
  end

  def test_gets_lowest_offer_listings_for_asin
    clients.each do |client|
      res = client.get_lowest_offer_listings_for_asin('1780935374')
      refute_empty res.parse
    end
  end

  def test_gets_product_categories_for_asin
    clients.each do |client|
      res = client.get_product_categories_for_asin('1780935374')
      refute_empty res.parse
    end
  end

  def test_gets_service_status
    clients.each do |client|
      res = client.get_service_status
      refute_empty res.parse
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
peddler-0.8.0 test/integration/test_products.rb
peddler-0.7.11 test/integration/test_products.rb
peddler-0.7.10 test/integration/test_products.rb
peddler-0.7.9 test/integration/test_products.rb
peddler-0.7.8 test/integration/test_products.rb
peddler-0.7.7 test/integration/test_products.rb
peddler-0.7.6 test/integration/test_products.rb
peddler-0.7.5 test/integration/test_products.rb
peddler-0.7.3 test/integration/test_products.rb
peddler-0.7.2 test/integration/test_products.rb
peddler-0.7.1 test/integration/test_products.rb
peddler-0.7.0 test/integration/test_products.rb