Skip to content

Commit b29765c

Browse files
committed
Spec tests for default_cache_enable behaviour.
1 parent ce42d7c commit b29765c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

spec/classes/mod/disk_cache_spec.rb

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@
105105
it {
106106
is_expected.to contain_file('disk_cache.conf')
107107
.with(content: %r{CacheEnable disk \/\nCacheRoot \"\/var\/cache\/apache2\/mod_cache_disk\"\nCacheDirLevels 2\nCacheDirLength 1\nCacheIgnoreHeaders Set-Cookie})
108-
}.to raise_error(Puppet::Error, 'default_cache_enable must be true or false')
108+
.to raise_error(Puppet::Error, 'default_cache_enable must be true or false')
109+
}
109110
end
110111
end
111112

@@ -206,7 +207,8 @@
206207
it {
207208
is_expected.to contain_file('disk_cache.conf')
208209
.with(content: %r{CacheEnable disk \/\nCacheRoot \"\/var\/cache\/apache2\/mod_cache_disk\"\nCacheDirLevels 2\nCacheDirLength 1\nCacheIgnoreHeaders Set-Cookie})
209-
}.to raise_error(Puppet::Error, 'default_cache_enable must be true or false')
210+
.to raise_error(Puppet::Error, 'default_cache_enable must be true or false')
211+
}
210212
end
211213
end
212214
context 'on a FreeBSD OS' do
@@ -312,7 +314,8 @@
312314
it {
313315
is_expected.to contain_file('disk_cache.conf')
314316
.with(content: %r{CacheEnable disk \/\nCacheRoot \"\/var\/cache\/apache2\/mod_cache_disk\"\nCacheDirLevels 2\nCacheDirLength 1\nCacheIgnoreHeaders Set-Cookie})
315-
}.to raise_error(Puppet::Error, 'default_cache_enable must be true or false')
317+
.to raise_error(Puppet::Error, 'default_cache_enable must be true or false')
318+
}
316319
end
317320
end
318321
end

0 commit comments

Comments
 (0)