summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorMikael Fridh <mfridh@marinsoftware.com>2013-03-08 12:38:09 +0100
committerMikael Fridh <mfridh@marinsoftware.com>2013-03-08 12:38:09 +0100
commit9968350db2343272068601bf5709c2548bc73eb7 (patch)
tree59e9f09fb47bfc05698703b284ce4cfd5d7f4c16 /spec
parent0569bb6388b35e79bee9142e832347272b4bfe16 (diff)
fixes #19418 - missing fixtures for spec tests
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