summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2015-04-30 22:35:40 -0600
committermo khan <mo@mokhan.ca>2015-04-30 22:35:40 -0600
commit240b01fad7543716e85bfd7f79e6f255ca3ba19f (patch)
treebd92a6f93c48a688c4dc2430887954e2fba3a504 /spec
parent05dd3c7abb569a81853e5edefbb4f18d9f9be12e (diff)
add spec to lay down apache template.
Diffstat (limited to 'spec')
-rw-r--r--spec/default_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/default_spec.rb b/spec/default_spec.rb
index 15b499d..25ca49a 100644
--- a/spec/default_spec.rb
+++ b/spec/default_spec.rb
@@ -12,4 +12,10 @@ describe 'mokhan-myface::default' do
it 'enables apache2 to start on boot' do
expect(chef_run).to enable_service('apache2')
end
+
+ it 'creates the default template' do
+ expect(chef_run).to create_template('/var/www/index.html')
+ .with_owner('root')
+ .with_group('root')
+ end
end