summaryrefslogtreecommitdiff
path: root/puppet/modules/site_apache/spec
diff options
context:
space:
mode:
authorTulio Casagrande <tcasagra@thoughtworks.com>2017-01-17 15:18:30 -0200
committerTulio Casagrande <tcasagra@thoughtworks.com>2017-01-17 15:18:30 -0200
commit80e0ca380e92fe435622dbd35d1a5baedb6c3f92 (patch)
tree96135e4aed98a2e366d5ba1c05b37e2cdeebf901 /puppet/modules/site_apache/spec
parentb6e19e290eb6395ce0a12bf2307282b00e7456ea (diff)
Ensure the directory exists before creating the file
with @aarni
Diffstat (limited to 'puppet/modules/site_apache/spec')
-rw-r--r--puppet/modules/site_apache/spec/classes/autorestart.rb7
-rw-r--r--puppet/modules/site_apache/spec/classes/autorestart_spec.rb7
2 files changed, 7 insertions, 7 deletions
diff --git a/puppet/modules/site_apache/spec/classes/autorestart.rb b/puppet/modules/site_apache/spec/classes/autorestart.rb
deleted file mode 100644
index afa02ec9..00000000
--- a/puppet/modules/site_apache/spec/classes/autorestart.rb
+++ /dev/null
@@ -1,7 +0,0 @@
-require 'spec_helper'
-
-describe 'site_apache::common::autorestart' do
- it "should include apache autorestart" do
- should contain_file('/etc/systemd/system/apache2.service.d/autorestart.conf').with_source('puppet:///modules/site_apache/autorestart.conf')
- end
-end
diff --git a/puppet/modules/site_apache/spec/classes/autorestart_spec.rb b/puppet/modules/site_apache/spec/classes/autorestart_spec.rb
new file mode 100644
index 00000000..ad9c9f2e
--- /dev/null
+++ b/puppet/modules/site_apache/spec/classes/autorestart_spec.rb
@@ -0,0 +1,7 @@
+require 'spec_helper'
+
+describe 'site_apache::common::autorestart' do
+ it "should include apache autorestart" do
+ should contain_file('apache2.service.d/autorestart.conf').with_source('puppet:///modules/site_apache/autorestart.conf')
+ end
+end