Sha256: 62b5f8459104f0241c3a3c454f77bd014fb46aca114efc4709e5837b8c56c2c2
Contents?: true
Size: 1.13 KB
Versions: 1
Compression:
Stored size: 1.13 KB
Contents
# frozen_string_literal: true require 'integration_helper' module Vacuum class RequestTest < IntegrationTest def test_get_browse_nodes requests.each do |request| response = request.get_browse_nodes(browse_node_ids: ['3045']) refute response.error? end end def test_get_items requests.each do |request| response = request.get_items(item_ids: ['B07212L4G2']) refute response.error? end end def test_get_items_with_options requests.each do |request| response = request.get_items(item_ids: 'B07212L4G2', resources: ['BrowseNodeInfo.BrowseNodes']) item = response.dig('ItemsResult', 'Items').first assert item.key?('BrowseNodeInfo') end end def test_get_variations requests.each do |request| response = request.get_variations(asin: 'B07212L4G2') refute response.error? end end def test_search_items requests.each do |request| response = request.search_items(keywords: 'Harry Potter') refute response.error? end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vacuum-3.0.0 | test/vacuum/test_request.rb |