Sha256: 6c7f43a1a8ea50b5fc894c5eec4164c05660c34039e58cc23ab96d6790c54274
Contents?: true
Size: 756 Bytes
Versions: 2
Compression:
Stored size: 756 Bytes
Contents
require 'helper' require 'ebay/shopping' class TestShopping < Minitest::Test def setup VCR.insert_cassette('shopping') @shopping = Ebay::Shopping.new @shopping.sandbox! end def teardown VCR.eject_cassette end def test_finds_half_products params = { 'CALLNAME' => 'FindHalfProducts', 'QueryKeywords' => 'ernesto laclau' } parser = @shopping.get(query: params, expects: 200) assert_kind_of Hash, parser.parse end def test_finds_half_products_with_json params = { 'CALLNAME' => 'FindHalfProducts', 'RESPONSEENCODING' => 'JSON', 'QueryKeywords' => 'ernesto laclau' } parser = @shopping.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_shopping.rb |
ebay-ruby-0.0.1 | test/test_shopping.rb |