summaryrefslogtreecommitdiff
path: root/test/xmlrpc
diff options
context:
space:
mode:
Diffstat (limited to 'test/xmlrpc')
-rw-r--r--test/xmlrpc/test_client.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/xmlrpc/test_client.rb b/test/xmlrpc/test_client.rb
index d0e47b17d6..c3c3854d72 100644
--- a/test/xmlrpc/test_client.rb
+++ b/test/xmlrpc/test_client.rb
@@ -233,6 +233,20 @@ module XMLRPC
assert_equal expected, resp
end
+ def test_i8_tag
+ fh = read('blog.xml').gsub(/string/, 'i8')
+
+ responses = {
+ '/foo' => [ Fake::Response.new(fh) ]
+ }
+
+ client = fake_client(responses).new2 'http://example.org/foo'
+
+ resp = client.call('wp.getUsersBlogs', 'tlo', 'omg')
+
+ assert_equal 1, resp.first['blogid']
+ end
+
private
def read filename
File.read File.expand_path(File.join(__FILE__, '..', 'data', filename))