1 require 'spec_helper_acceptance'
3 describe 'strftime function', :if => Puppet::Util::Package.versioncmp(Puppet.version, '4.8.0') < 0 do
7 notice(inline_template('strftime is <%= @o.inspect %>'))
9 it 'gives the Century' do
10 apply_manifest(pp, :catch_failures => true) do |r|
11 expect(r.stdout).to match(%r{strftime is "20"})
14 it 'takes a timezone argument'
17 it 'handles no arguments'
18 it 'handles invalid format strings'