ebayapi 0.9.3 → 0.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG +2 -0
- data/Rakefile +1 -1
- data/lib/ebay/api.rb +5 -3
- data/rakefile +1 -1
- data/test/fixtures/responses/get_product_finder_xsl.xml +5215 -0
- data/test/unit/{get_attributes_xsl.rb → get_attributes_xsl_test.rb} +8 -3
- data/test/unit/get_product_finder_xsl_test.rb +23 -0
- metadata +5 -3
@@ -8,11 +8,16 @@ class GetAttributesXSLTest < Test::Unit::TestCase
|
|
8
8
|
@ebay = Api.new
|
9
9
|
end
|
10
10
|
|
11
|
-
def
|
11
|
+
def test_get_attributes_xsl
|
12
12
|
HttpMock.respond_with responses(:get_attributes_xsl)
|
13
13
|
response = @ebay.get_attributes_xsl(:detail_level => 'ReturnAll')
|
14
14
|
assert_equal 1, response.xsl_files.size
|
15
|
-
|
16
|
-
|
15
|
+
file = response.xsl_files.first
|
16
|
+
assert_equal 'syi_attributes.xsl', file.file_name
|
17
|
+
assert_equal '26', file.file_version
|
18
|
+
|
19
|
+
assert_nothing_raised do
|
20
|
+
REXML::Document.new(file.file_content)
|
21
|
+
end
|
17
22
|
end
|
18
23
|
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require File.dirname(__FILE__) + '/../test_helper'
|
2
|
+
|
3
|
+
class GetProductFinderXSLTest < Test::Unit::TestCase
|
4
|
+
include Ebay
|
5
|
+
include Ebay::Types
|
6
|
+
|
7
|
+
def setup
|
8
|
+
@ebay = Api.new
|
9
|
+
end
|
10
|
+
|
11
|
+
def test_get_product_finder_xsl
|
12
|
+
HttpMock.respond_with responses(:get_product_finder_xsl)
|
13
|
+
response = @ebay.get_product_finder_xsl(:detail_level => 'ReturnAll')
|
14
|
+
assert_equal 1, response.xsl_files.size
|
15
|
+
file = response.xsl_files.first
|
16
|
+
assert_equal 'product_finder.xsl', file.file_name
|
17
|
+
assert_equal '2', file.file_version
|
18
|
+
|
19
|
+
assert_nothing_raised do
|
20
|
+
REXML::Document.new(file.file_content)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.0
|
|
3
3
|
specification_version: 1
|
4
4
|
name: ebayapi
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.9.
|
7
|
-
date:
|
6
|
+
version: 0.9.4
|
7
|
+
date: 2007-02-05 00:00:00 -05:00
|
8
8
|
summary: Ruby client for the eBay unified schema XML API
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -855,6 +855,7 @@ files:
|
|
855
855
|
- test/fixtures/notifications/no_soap_body.xml
|
856
856
|
- test/fixtures/responses/get_attributes_cs.xml
|
857
857
|
- test/fixtures/responses/get_attributes_xsl.xml
|
858
|
+
- test/fixtures/responses/get_product_finder_xsl.xml
|
858
859
|
- test/fixtures/responses/official_time_failure.xml
|
859
860
|
- test/fixtures/responses/official_time_success.xml
|
860
861
|
- test/fixtures/responses/official_time_warning.xml
|
@@ -872,7 +873,8 @@ files:
|
|
872
873
|
- test/unit/ebay_test.rb
|
873
874
|
- test/unit/generate_from_xsd.rb
|
874
875
|
- test/unit/get_attributes_cs_test.rb
|
875
|
-
- test/unit/
|
876
|
+
- test/unit/get_attributes_xsl_test.rb
|
877
|
+
- test/unit/get_product_finder_xsl_test.rb
|
876
878
|
- test/unit/initializer_test.rb
|
877
879
|
- test/unit/mapping_subclass_test.rb
|
878
880
|
- test/unit/node_test.rb
|