1 #! /usr/bin/env ruby -S rspec
2 require 'spec_helper_acceptance'
4 describe 'time function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
9 notice(inline_template('time is <%= @o.inspect %>'))
12 apply_manifest(pp, :catch_failures => true) do |r|
13 m = r.stdout.match(/time is (\d+)\D/)
15 # When I wrote this test
16 expect(Integer(m[1])).to be > 1398894170
19 it 'takes a timezone argument' do
22 notice(inline_template('time is <%= @o.inspect %>'))
25 apply_manifest(pp, :catch_failures => true) do |r|
26 m = r.stdout.match(/time is (\d+)\D/)
28 expect(Integer(m[1])).to be > 1398894170
33 it 'handles more arguments'
34 it 'handles invalid timezones'