1919 context "default negotiation config" do
2020 it 'succeeds in puppeting negotiation' do
2121 pp = <<-EOS
22- class { '::apache': }
22+ class { '::apache': default_mods => false }
2323 class { '::apache::mod::negotiation': }
2424 EOS
2525 apply_manifest ( pp , :catch_failures => true )
2626 end
2727
28- describe file ( "#{ $ mod_dir} /negotiation.conf" ) do
28+ describe file ( "#{ mod_dir } /negotiation.conf" ) do
2929 it { should contain "LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW
3030ForceLanguagePriority Prefer Fallback" }
3131 end
@@ -39,15 +39,15 @@ class { '::apache::mod::negotiation': }
3939 context "with alternative force_language_priority" do
4040 it 'succeeds in puppeting negotiation' do
4141 pp = <<-EOS
42- class { '::apache': }
42+ class { '::apache': default_mods => false }
4343 class { '::apache::mod::negotiation':
4444 force_language_priority => 'Prefer',
4545 }
4646 EOS
4747 apply_manifest ( pp , :catch_failures => true )
4848 end
4949
50- describe file ( "#{ $ mod_dir} /negotiation.conf" ) do
50+ describe file ( "#{ mod_dir } /negotiation.conf" ) do
5151 it { should contain "ForceLanguagePriority Prefer" }
5252 end
5353
@@ -60,15 +60,15 @@ class { '::apache::mod::negotiation':
6060 context "with alternative language_priority" do
6161 it 'succeeds in puppeting negotiation' do
6262 pp = <<-EOS
63- class { '::apache': }
63+ class { '::apache': default_mods => false }
6464 class { '::apache::mod::negotiation':
6565 language_priority => [ 'en', 'es' ],
6666 }
6767 EOS
6868 apply_manifest ( pp , :catch_failures => true )
6969 end
7070
71- describe file ( "#{ $ mod_dir} /negotiation.conf" ) do
71+ describe file ( "#{ mod_dir } /negotiation.conf" ) do
7272 it { should contain "LanguagePriority en es" }
7373 end
7474
0 commit comments