summaryrefslogtreecommitdiff
path: root/spec/classes/ntp_spec.rb
diff options
context:
space:
mode:
authorMikael Fridh <frimik@gmail.com>2013-02-23 01:17:54 +0100
committerMikael Fridh <mfridh@marinsoftware.com>2013-02-23 01:20:34 +0100
commit0569bb6388b35e79bee9142e832347272b4bfe16 (patch)
tree8446f02c618497b81957ab627c0c395617c36769 /spec/classes/ntp_spec.rb
parente1c8433552ce7044541843b019aa3069a45c10d1 (diff)
ntp: fixes #19418 - allow template override
This allows a template to be explicitly set.
Diffstat (limited to 'spec/classes/ntp_spec.rb')
-rw-r--r--spec/classes/ntp_spec.rb6
1 files changed, 6 insertions, 0 deletions
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