1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/tests/rackspace/url_encoding_tests.rb

5 lines
283 B
Ruby

Shindo.tests('Rackspace | url_encoding', ['rackspace']) do
returns("is%20this%20my%20file%3F.jpg") { Fog::Rackspace.escape("is this my file?.jpg") }
returns("foo/bar") { Fog::Rackspace.escape("foo/bar", "/") }
returns("foo%2Fbar") { Fog::Rackspace.escape("foo/bar", "0") }
end