summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/classes/ntp_spec.rb2
-rw-r--r--spec/fixtures/modules/my_ntp/templates/ntp.conf.erb4
2 files changed, 5 insertions, 1 deletions
diff --git a/spec/classes/ntp_spec.rb b/spec/classes/ntp_spec.rb
index 8561171..ec07aba 100644
--- a/spec/classes/ntp_spec.rb
+++ b/spec/classes/ntp_spec.rb
@@ -109,7 +109,7 @@ describe 'ntp' do
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'
+ 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
diff --git a/spec/fixtures/modules/my_ntp/templates/ntp.conf.erb b/spec/fixtures/modules/my_ntp/templates/ntp.conf.erb
new file mode 100644
index 0000000..40cf67c
--- /dev/null
+++ b/spec/fixtures/modules/my_ntp/templates/ntp.conf.erb
@@ -0,0 +1,4 @@
+#my uber ntp config
+#
+
+server foobar