Sha256: d6fcc121e65f0ce796d8f2809983da1b1d111a382eea11470af8f60c48eb44d9
Contents?: true
Size: 1014 Bytes
Versions: 2
Compression:
Stored size: 1014 Bytes
Contents
require 'helper' require 'ebay/product' class TestProduct < Minitest::Test def setup VCR.insert_cassette('product') @product = Ebay::Product.new @product.sandbox! end def teardown VCR.eject_cassette end def test_gets_product_details params = { 'GLOBAL-ID' => 'EBAY-US', 'OPERATION-NAME' => 'getProductDetails', 'productDetailsRequest.dataset' => 'DisplayableSearchResults', 'productDetailsRequest.productIdentifier.ePID' => '83414' } parser = @product.get(query: params, expects: 200) assert_kind_of Hash, parser.parse end def test_gets_product_details_with_json params = { 'RESPONSE-DATA-FORMAT' => 'JSON', 'GLOBAL-ID' => 'EBAY-US', 'OPERATION-NAME' => 'getProductDetails', 'productDetailsRequest.dataset' => 'DisplayableSearchResults', 'productDetailsRequest.productIdentifier.ePID' => '83414' } parser = @product.get(query: params, expects: 200) assert_kind_of Hash, parser.parse end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ebay-ruby-0.2.0 | test/test_product.rb |
ebay-ruby-0.0.1 | test/test_product.rb |