Revision 4c18f820
Added by Ivan Necas over 10 years ago
modules/stdlib/spec/unit/puppet/parser/functions/uriescape_spec.rb | ||
---|---|---|
end
|
||
|
||
it "should uriescape a string" do
|
||
result = scope.function_uriescape([":/?#[]@!$&'()*+,;= \"{}"])
|
||
result.should(eq(':/?%23[]@!$&\'()*+,;=%20%22%7B%7D'))
|
||
result = scope.function_uriescape([":/?#[]@!$&'()*+,;= "])
|
||
result.should(eq('%3A%2F%3F%23%5B%5D%40%21%24%26%27%28%29%2A%2B%2C%3B%3D%20'))
|
||
end
|
||
|
||
it "should do nothing if a string is already safe" do
|
Also available in: Unified diff
Update to librarian