X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=3rdparty%2Fmodules%2Fstdlib%2Fspec%2Facceptance%2Fbase64_spec.rb;h=5cc4d62c6e1996bb0784a0da405ea30c54921421;hb=6f656bd4265e3dab13b9af2bf96e9044322e9d8f;hp=e9096a7e6ba2a47fc66f4d5bf42b0d0eea33579f;hpb=6963202b4b62c2816655ac9532521b018fdf83bd;p=mirror%2Fdsa-puppet.git diff --git a/3rdparty/modules/stdlib/spec/acceptance/base64_spec.rb b/3rdparty/modules/stdlib/spec/acceptance/base64_spec.rb old mode 100755 new mode 100644 index e9096a7e6..5cc4d62c6 --- a/3rdparty/modules/stdlib/spec/acceptance/base64_spec.rb +++ b/3rdparty/modules/stdlib/spec/acceptance/base64_spec.rb @@ -1,17 +1,15 @@ -#! /usr/bin/env ruby -S rspec require 'spec_helper_acceptance' describe 'base64 function' do describe 'success' do - it 'should encode then decode a string' do - pp = <<-EOS + pp = <<-DOC $encodestring = base64('encode', 'thestring') $decodestring = base64('decode', $encodestring) notify { $decodestring: } - EOS - + DOC + it 'encodes then decode a string' do apply_manifest(pp, :catch_failures => true) do |r| - expect(r.stdout).to match(/thestring/) + expect(r.stdout).to match(%r{thestring}) end end end