Suggest different variables to use if we want to tunnel both v4 and v6
[mirror/dsa-puppet.git] / 3rdparty / modules / stdlib / spec / acceptance / strftime_spec.rb
1 require 'spec_helper_acceptance'
2
3 describe 'strftime function', :if => Puppet::Util::Package.versioncmp(Puppet.version, '4.8.0') < 0 do
4   describe 'success' do
5     pp = <<-DOC
6       $o = strftime('%C')
7       notice(inline_template('strftime is <%= @o.inspect %>'))
8     DOC
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"})
12       end
13     end
14     it 'takes a timezone argument'
15   end
16   describe 'failure' do
17     it 'handles no arguments'
18     it 'handles invalid format strings'
19   end
20 end