diff options
author | Adrien Thebo <git@somethingsinistral.net> | 2013-03-08 09:19:59 -0800 |
---|---|---|
committer | Adrien Thebo <git@somethingsinistral.net> | 2013-03-08 09:19:59 -0800 |
commit | b1b3132f84d1628800e50a65f6c49bb998872acc (patch) | |
tree | 4e55fbfaa5407c1019418d9e3913718c65bd241d /spec/classes/ntp_spec.rb | |
parent | fd064cbdf39bf12794e4c6733b188a077a47a214 (diff) | |
parent | 9968350db2343272068601bf5709c2548bc73eb7 (diff) |
Merge pull request #47 from frimik/feature-19418-ntp-template
ntp: fixes #19418 - allow template override
Diffstat (limited to 'spec/classes/ntp_spec.rb')
-rw-r--r-- | spec/classes/ntp_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/classes/ntp_spec.rb b/spec/classes/ntp_spec.rb index e74f7c1..9ce690b 100644 --- a/spec/classes/ntp_spec.rb +++ b/spec/classes/ntp_spec.rb @@ -128,6 +128,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.erb' + 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 |