1 #! /usr/bin/env ruby -S rspec
2 require 'spec_helper_acceptance'
4 describe 'uriescape function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
6 it 'uriescape strings' do
8 $a = ":/?#[]@!$&'()*+,;= \\\"{}"
10 notice(inline_template('uriescape is <%= @o.inspect %>'))
13 apply_manifest(pp, :catch_failures => true) do |r|
14 expect(r.stdout).to match(/uriescape is ":\/\?%23\[\]@!\$&'\(\)\*\+,;=%20%22%7B%7D"/)
17 it 'does nothing if a string is already safe'
20 it 'handles no arguments'
21 it 'handles non strings or arrays'