summaryrefslogtreecommitdiff
path: root/spec/unit/puppet/parser/functions
diff options
context:
space:
mode:
authorTomas Doran <bobtfish@bobtfish.net>2013-07-02 11:18:42 +0100
committerAdrien Thebo <git@somethingsinistral.net>2013-07-22 13:12:28 -0700
commitb2e23dc65bd9851dcb6ad60ffca1acbc70b617e1 (patch)
tree6a0bf65f61575edd8b8ad1ebaedc6fbd7726201b /spec/unit/puppet/parser/functions
parente0d4588bd2470109bd1eea4e597f1d205bf01b52 (diff)
downloadpuppet-stdlib-b2e23dc65bd9851dcb6ad60ffca1acbc70b617e1.tar.gz
puppet-stdlib-b2e23dc65bd9851dcb6ad60ffca1acbc70b617e1.tar.bz2
Adjust to use default URI.escape escape list
Conform to RFC per comments on: https://github.com/puppetlabs/puppetlabs-stdlib/pull/164 Conflicts: lib/puppet/parser/functions/uriescape.rb spec/unit/puppet/parser/functions/uriescape_spec.rb
Diffstat (limited to 'spec/unit/puppet/parser/functions')
-rw-r--r--spec/unit/puppet/parser/functions/uriescape_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/puppet/parser/functions/uriescape_spec.rb b/spec/unit/puppet/parser/functions/uriescape_spec.rb
index 371de46..7211c88 100644
--- a/spec/unit/puppet/parser/functions/uriescape_spec.rb
+++ b/spec/unit/puppet/parser/functions/uriescape_spec.rb
@@ -13,8 +13,8 @@ describe "the uriescape function" do
end
it "should uriescape a string" do
- 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'))
+ result = scope.function_uriescape([":/?#[]@!$&'()*+,;= \"{}"])
+ result.should(eq(':/?%23[]@!$&\'()*+,;=%20%22%7B%7D'))
end
it "should do nothing if a string is already safe" do