Suggest different variables to use if we want to tunnel both v4 and v6
[mirror/dsa-puppet.git] / 3rdparty / modules / stdlib / spec / acceptance / uriescape_spec.rb
1 require 'spec_helper_acceptance'
2
3 describe 'uriescape function' do
4   describe 'success' do
5     pp = <<-DOC
6       $a = ":/?#[]@!$&'()*+,;= \\\"{}"
7       $o = uriescape($a)
8       notice(inline_template('uriescape is <%= @o.inspect %>'))
9     DOC
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"})
13       end
14     end
15     it 'does nothing if a string is already safe'
16   end
17   describe 'failure' do
18     it 'handles no arguments'
19     it 'handles non strings or arrays'
20   end
21 end