Sha256: a08ebccd2728bcbaa12954eefb38367a8dbf96c5aceda0da2ab1bd1a90435c16
Contents?: true
Size: 804 Bytes
Versions: 2
Compression:
Stored size: 804 Bytes
Contents
require 'helper' require 'ebay/merchandising' class TestMerchandising < Minitest::Test def setup VCR.insert_cassette('merchandising') @merchandising = Ebay::Merchandising.new @merchandising.sandbox! end def teardown VCR.eject_cassette end def test_gets_most_watched_items params = { 'GLOBAL-ID' => 'EBAY-US', 'OPERATION-NAME' => 'getMostWatchedItems' } parser = @merchandising.get(query: params, expects: 200) assert_kind_of Hash, parser.parse end def test_gets_most_watched_items_with_json params = { 'RESPONSE-DATA-FORMAT' => 'JSON', 'GLOBAL-ID' => 'EBAY-US', 'OPERATION-NAME' => 'getMostWatchedItems' } parser = @merchandising.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_merchandising.rb |
ebay-ruby-0.0.1 | test/test_merchandising.rb |