Sha256: a44ae57b604e84bb2e4b71e44141435ce3675a68031d5d4fe17732aca696784a

Contents?: true

Size: 1.26 KB

Versions: 12

Compression:

Stored size: 1.26 KB

Contents

require 'helper'
require 'mws/products'

class TestProducts < 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-1.0.2 test/integration/test_products.rb
peddler-1.0.1 test/integration/test_products.rb
peddler-1.0.0 test/integration/test_products.rb
peddler-0.19.0 test/integration/test_products.rb
peddler-0.18.0 test/integration/test_products.rb
peddler-0.17.1 test/integration/test_products.rb
peddler-0.17.0 test/integration/test_products.rb
peddler-0.16.0 test/integration/test_products.rb
peddler-0.15.0 test/integration/test_products.rb
peddler-0.14.0 test/integration/test_products.rb
peddler-0.13.0 test/integration/test_products.rb
peddler-0.12.7 test/integration/test_products.rb