X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=3rdparty%2Fmodules%2Fstdlib%2Fspec%2Facceptance%2Furiescape_spec.rb;h=95536259c4171ddf8df9c6fc36d7e48e21fcabf8;hb=6f656bd4265e3dab13b9af2bf96e9044322e9d8f;hp=7e30205e8dd2479cdf3bfe3e7cd89affe0fb613b;hpb=ad88f67c13ae0f1a08936dad643f1e3509ab5f40;p=mirror%2Fdsa-puppet.git diff --git a/3rdparty/modules/stdlib/spec/acceptance/uriescape_spec.rb b/3rdparty/modules/stdlib/spec/acceptance/uriescape_spec.rb old mode 100755 new mode 100644 index 7e30205e8..95536259c --- a/3rdparty/modules/stdlib/spec/acceptance/uriescape_spec.rb +++ b/3rdparty/modules/stdlib/spec/acceptance/uriescape_spec.rb @@ -1,17 +1,15 @@ -#! /usr/bin/env ruby -S rspec require 'spec_helper_acceptance' -describe 'uriescape function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do +describe 'uriescape function' do describe 'success' do - it 'uriescape strings' do - pp = <<-EOS + pp = <<-DOC $a = ":/?#[]@!$&'()*+,;= \\\"{}" $o = uriescape($a) notice(inline_template('uriescape is <%= @o.inspect %>')) - EOS - + DOC + it 'uriescape strings' do apply_manifest(pp, :catch_failures => true) do |r| - expect(r.stdout).to match(/uriescape is ":\/\?%23\[\]@!\$&'\(\)\*\+,;=%20%22%7B%7D"/) + expect(r.stdout).to match(%r{uriescape is ":\/\?%23\[\]@!\$&'\(\)\*\+,;=%20%22%7B%7D"}) end end it 'does nothing if a string is already safe'