1 #! /usr/bin/env ruby -S rspec
2 require 'spec_helper_acceptance'
4 describe 'strftime function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
6 it 'gives the Century' do
9 notice(inline_template('strftime is <%= @o.inspect %>'))
12 apply_manifest(pp, :catch_failures => true) do |r|
13 expect(r.stdout).to match(/strftime is "20"/)
16 it 'takes a timezone argument'
19 it 'handles no arguments'
20 it 'handles invalid format strings'