|
56 | 56 | }' |
57 | 57 | end |
58 | 58 |
|
59 | | - let(:params) {{ 'default_cache_enable' => false}} |
| 59 | + let(:params) { { 'default_cache_enable' => false} } |
60 | 60 |
|
61 | 61 | it { is_expected.to compile } |
62 | 62 | it { is_expected.to contain_class('apache::mod::disk_cache') } |
|
76 | 76 | }' |
77 | 77 | end |
78 | 78 |
|
79 | | - let(:params) {{ 'default_cache_enable' => true}} |
| 79 | + let(:params) { { 'default_cache_enable' => true} } |
80 | 80 |
|
81 | 81 | it { is_expected.to compile } |
82 | 82 | it { is_expected.to contain_class('apache::mod::disk_cache') } |
|
96 | 96 | }' |
97 | 97 | end |
98 | 98 |
|
99 | | - let(:params) {{ 'default_cache_enable' => 'foo'}} |
| 99 | + let(:params) { { 'default_cache_enable' => 'foo'} } |
100 | 100 |
|
101 | 101 | it { is_expected.to compile } |
102 | 102 | it { is_expected.to contain_class('apache::mod::disk_cache') } |
|
105 | 105 | it { |
106 | 106 | is_expected.to contain_file('disk_cache.conf') |
107 | 107 | .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, %r/default_cache_enable must be true or false/) |
109 | 109 | end |
110 | 110 | end |
111 | 111 |
|
|
157 | 157 | }' |
158 | 158 | end |
159 | 159 |
|
160 | | - let(:params) {{ 'default_cache_enable' => false}} |
| 160 | + let(:params) { { 'default_cache_enable' => false} } |
161 | 161 |
|
162 | 162 | it { is_expected.to compile } |
163 | 163 | it { is_expected.to contain_class('apache::mod::disk_cache') } |
|
177 | 177 | }' |
178 | 178 | end |
179 | 179 |
|
180 | | - let(:params) {{ 'default_cache_enable' => true}} |
| 180 | + let(:params) { { 'default_cache_enable' => true} } |
181 | 181 |
|
182 | 182 | it { is_expected.to compile } |
183 | 183 | it { is_expected.to contain_class('apache::mod::disk_cache') } |
|
197 | 197 | }' |
198 | 198 | end |
199 | 199 |
|
200 | | - let(:params) {{ 'default_cache_enable' => 'foo'}} |
| 200 | + let(:params) { { 'default_cache_enable' => 'foo'} } |
201 | 201 |
|
202 | 202 | it { is_expected.to compile } |
203 | 203 | it { is_expected.to contain_class('apache::mod::disk_cache') } |
|
206 | 206 | it { |
207 | 207 | is_expected.to contain_file('disk_cache.conf') |
208 | 208 | .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/) |
| 209 | + }.to raise_error(Puppet::Error, %r/default_cache_enable must be true or false/) |
210 | 210 | end |
211 | 211 | end |
212 | 212 | context 'on a FreeBSD OS' do |
|
263 | 263 | }' |
264 | 264 | end |
265 | 265 |
|
266 | | - let(:params) {{ 'default_cache_enable' => false}} |
| 266 | + let(:params) { { 'default_cache_enable' => false} } |
267 | 267 |
|
268 | 268 | it { is_expected.to compile } |
269 | 269 | it { is_expected.to contain_class('apache::mod::disk_cache') } |
|
283 | 283 | }' |
284 | 284 | end |
285 | 285 |
|
286 | | - let(:params) {{ 'default_cache_enable' => true}} |
| 286 | + let(:params) { { 'default_cache_enable' => true} } |
287 | 287 |
|
288 | 288 | it { is_expected.to compile } |
289 | 289 | it { is_expected.to contain_class('apache::mod::disk_cache') } |
|
303 | 303 | }' |
304 | 304 | end |
305 | 305 |
|
306 | | - let(:params) {{ 'default_cache_enable' => 'foo'}} |
| 306 | + let(:params) { { 'default_cache_enable' => 'foo'} } |
307 | 307 |
|
308 | 308 | it { is_expected.to compile } |
309 | 309 | it { is_expected.to contain_class('apache::mod::disk_cache') } |
|
312 | 312 | it { |
313 | 313 | is_expected.to contain_file('disk_cache.conf') |
314 | 314 | .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/) |
| 315 | + }.to raise_error(Puppet::Error, %r/default_cache_enable must be true or false/) |
316 | 316 | end |
317 | 317 | end |
318 | 318 | end |
0 commit comments