1 #! /usr/bin/env ruby -S rspec
2 require 'spec_helper_acceptance'
4 describe 'base64 function' do
6 it 'should encode then decode a string' do
8 $encodestring = base64('encode', 'thestring')
9 $decodestring = base64('decode', $encodestring)
10 notify { $decodestring: }
13 apply_manifest(pp, :catch_failures => true) do |r|
14 expect(r.stdout).to match(/thestring/)