From 0569bb6388b35e79bee9142e832347272b4bfe16 Mon Sep 17 00:00:00 2001 From: Mikael Fridh Date: Sat, 23 Feb 2013 01:17:54 +0100 Subject: ntp: fixes #19418 - allow template override This allows a template to be explicitly set. --- spec/classes/ntp_spec.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'spec') diff --git a/spec/classes/ntp_spec.rb b/spec/classes/ntp_spec.rb index 8f41a22..8561171 100644 --- a/spec/classes/ntp_spec.rb +++ b/spec/classes/ntp_spec.rb @@ -108,6 +108,12 @@ describe 'ntp' do params[:autoupdate] = true subject.should contain_package('ntp').with_ensure('latest') end + it 'should allow template to be overridden' do + params[:config_template] = 'my_ntp/ntp.conf.my' + content = param_value(subject, 'file', '/etc/ntp.conf', 'content') + expected_lines = ['server foobar'] + (content.split("\n") & expected_lines).should == expected_lines + end end end end -- cgit v1.2.3