1 require 'spec_helper_acceptance'
3 describe 'uriescape function' do
6 $a = ":/?#[]@!$&'()*+,;= \\\"{}"
8 notice(inline_template('uriescape is <%= @o.inspect %>'))
10 it 'uriescape strings' do
11 apply_manifest(pp, :catch_failures => true) do |r|
12 expect(r.stdout).to match(%r{uriescape is ":\/\?%23\[\]@!\$&'\(\)\*\+,;=%20%22%7B%7D"})
15 it 'does nothing if a string is already safe'
18 it 'handles no arguments'
19 it 'handles non strings or arrays'