File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 110110 it { is_expected . to contain_file ( "/etc/apache2/apache2.conf" ) . with_content %r{^AllowEncodedSlashes nodecode$} }
111111 end
112112
113+ context "when specifying default character set" do
114+ let :params do
115+ { :default_charset => 'none' }
116+ end
117+
118+ it { is_expected . to contain_file ( "/etc/apache2/apache2.conf" ) . with_content %r{^AddDefaultCharset none$} }
119+ end
120+
113121 # Assert that both load files and conf files are placed and symlinked for these mods
114122 [
115123 'alias' ,
337345 it { is_expected . to contain_file ( "/etc/httpd/conf/httpd.conf" ) . with_content %r{^AllowEncodedSlashes nodecode$} }
338346 end
339347
348+ context "when specifying default character set" do
349+ let :params do
350+ { :default_charset => 'none' }
351+ end
352+
353+ it { is_expected . to contain_file ( "/etc/httpd/conf/httpd.conf" ) . with_content %r{^AddDefaultCharset none$} }
354+ end
355+
340356 it { is_expected . to contain_file ( "/etc/httpd/conf/httpd.conf" ) . with_content %r{^Include "/etc/httpd/site\. d/\* "$} }
341357 it { is_expected . to contain_file ( "/etc/httpd/conf/httpd.conf" ) . with_content %r{^Include "/etc/httpd/mod\. d/\* \. conf"$} }
342358 it { is_expected . to contain_file ( "/etc/httpd/conf/httpd.conf" ) . with_content %r{^Include "/etc/httpd/mod\. d/\* \. load"$} }
You can’t perform that action at this time.
0 commit comments