Permalink
Browse files

add tests for COOK-1738

  • Loading branch information...
1 parent f2381f4 commit 6403254147b2759d8bbb827327f9ab45c6675adb @jtimberman jtimberman committed Nov 5, 2012
@@ -0,0 +1,15 @@
+require File.expand_path('../support/helpers', __FILE__)
+
+describe 'apache2::mod_include' do
+ include Helpers::Apache
+
+ it 'enables include_module' do
+ apache_enabled_modules.must_include "include_module"
+ end
+
+ it 'drops off the include module configuration' do
+ assert_match(/AddType text\/html .shtml/, File.read("#{node['apache']['dir']}/mods-enabled/include.conf"))
+ assert_match(/AddOutputFilter INCLUDES .shtml/, File.read("#{node['apache']['dir']}/mods-enabled/include.conf"))
+ end
+
+end
@@ -1,4 +1,4 @@
-<IfModule mod_include.c>
+<IfModule mod_include.c>
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
</IfModule>
View
@@ -34,6 +34,7 @@ cookbook "apache2" do
configuration "mod_dav_svn"
configuration "mod_expires"
configuration "mod_fastcgi"
+ configuration "mod_include"
configuration "mod_perl"
configuration "mod_apreq2"
configuration "mod_php5"
@@ -13,7 +13,6 @@
expires
fcgid
headers
- include
ldap
proxy
proxy_balancer
@@ -30,7 +30,6 @@
expires
fcgid
headers
- include
ldap
proxy
proxy_balancer

0 comments on commit 6403254

Please sign in to comment.