diff --git a/extra/oauth/oauth-tests.factor b/extra/oauth/oauth-tests.factor index 9e3d349623..4e632b049e 100644 --- a/extra/oauth/oauth-tests.factor +++ b/extra/oauth/oauth-tests.factor @@ -1,21 +1,21 @@ USING: oauth oauth.private tools.test accessors kernel assocs -strings namespaces ; +strings namespaces urls ; IN: oauth.tests [ "%26&b" ] [ "&" "b" hmac-key ] unit-test [ "%26&" ] [ "&" f hmac-key ] unit-test -[ "B&http%3A%2F%2Ftwitter.com&a%3Db" ] [ - "http://twitter.com" +[ "B&http%3A%2F%2Ftwitter.com%2F&a%3Db" ] [ + URL" http://twitter.com" "B" { { "a" "b" } } signature-base-string ] unit-test -[ "Z5tUa83q43qiy6dGGCb92bN/4ik=" ] [ +[ "0EieqbHx0FJ/RtFskmRj9/TDpqo=" ] [ "ABC" "DEF" consumer-token set - "http://twitter.com" + URL" http://twitter.com" 12345 >>timestamp 54321 >>nonce