fix test cases

This commit is contained in:
William Cheng
2015-04-02 21:37:54 +08:00
parent 0a4fc6a40f
commit 9c5153e8c8
5 changed files with 15 additions and 17 deletions

View File

@@ -328,7 +328,7 @@ class UserApi
}.merge(opts)
#resource path
path = "/user/{username}".sub('{format}','json').sub('{' + 'username' + '}', username)
path = "/user/{username}".sub('{format}','json').sub('{' + 'username' + '}', username.to_s)
# pull querystring keys from options
@@ -381,7 +381,7 @@ class UserApi
}.merge(opts)
#resource path
path = "/user/{username}".sub('{format}','json').sub('{' + 'username' + '}', username)
path = "/user/{username}".sub('{format}','json').sub('{' + 'username' + '}', username.to_s)
# pull querystring keys from options
@@ -451,7 +451,7 @@ class UserApi
}.merge(opts)
#resource path
path = "/user/{username}".sub('{format}','json').sub('{' + 'username' + '}', username)
path = "/user/{username}".sub('{format}','json').sub('{' + 'username' + '}', username.to_s)
# pull querystring keys from options