X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=3rdparty%2Fmodules%2Fstdlib%2Fspec%2Facceptance%2Furiescape_spec.rb;h=95536259c4171ddf8df9c6fc36d7e48e21fcabf8;hb=131e09855e065be940e104d9ab0f18940cc76257;hp=e1234259c602cfffc8372bc55ae0ceb96154975c;hpb=407d322498f4fde815abf381007fbecfe5c10b2b;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 e1234259c..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' 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'