base64_spec.rb 425 B

12345678910111213141516
  1. require 'spec_helper_acceptance'
  2. describe 'base64 function' do
  3. describe 'success' do
  4. pp = <<-DOC
  5. $encodestring = base64('encode', 'thestring')
  6. $decodestring = base64('decode', $encodestring)
  7. notify { $decodestring: }
  8. DOC
  9. it 'encodes then decode a string' do
  10. apply_manifest(pp, :catch_failures => true) do |r|
  11. expect(r.stdout).to match(%r{thestring})
  12. end
  13. end
  14. end
  15. end