Skip to content

Commit 8081069

Browse files
committed
(CONT-772) Correct Style/RedundantRegexpEscape
1 parent ac31ad5 commit 8081069

File tree

11 files changed

+74
-89
lines changed

11 files changed

+74
-89
lines changed

.rubocop_todo.yml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -202,21 +202,6 @@ Style/RedundantArgument:
202202
Exclude:
203203
- 'spec/classes/mod/status_spec.rb'
204204

205-
# Offense count: 247
206-
# This cop supports safe autocorrection (--autocorrect).
207-
Style/RedundantRegexpEscape:
208-
Exclude:
209-
- 'spec/classes/apache_spec.rb'
210-
- 'spec/classes/mod/alias_spec.rb'
211-
- 'spec/classes/mod/auth_mellon_spec.rb'
212-
- 'spec/classes/mod/disk_cache_spec.rb'
213-
- 'spec/classes/mod/passenger_spec.rb'
214-
- 'spec/classes/mod/security_spec.rb'
215-
- 'spec/classes/mod/ssl_spec.rb'
216-
- 'spec/classes/mod/userdir_spec.rb'
217-
- 'spec/classes/mod/wsgi_spec.rb'
218-
- 'spec/defines/vhost_spec.rb'
219-
220205
# Offense count: 1
221206
# This cop supports unsafe autocorrection (--autocorrect-all).
222207
# Configuration parameters: Mode.

spec/classes/apache_spec.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,8 @@
187187
} }
188188
end
189189

190-
it { is_expected.to contain_file('/etc/apache2/apache2.conf').with_content %r{^LogFormat "%v %h %l %u %t \"%r\" %>s %b" vhost_common\n} }
191-
it { is_expected.to contain_file('/etc/apache2/apache2.conf').with_content %r{^LogFormat "%v %h %l %u %t \"%r\" %>s %b \"%\{Referer\}i\" \"%\{User-agent\}i\"" vhost_combined\n} }
190+
it { is_expected.to contain_file('/etc/apache2/apache2.conf').with_content %r{^LogFormat "%v %h %l %u %t "%r" %>s %b" vhost_common\n} }
191+
it { is_expected.to contain_file('/etc/apache2/apache2.conf').with_content %r{^LogFormat "%v %h %l %u %t "%r" %>s %b "%\{Referer\}i" "%\{User-agent\}i"" vhost_combined\n} }
192192
end
193193

194194
describe 'Override existing LogFormats When parameter log_formats is a hash' do
@@ -200,13 +200,13 @@
200200
end
201201

202202
expected = [
203-
%r{^LogFormat "%v %h %l %u %t \"%r\" %>s %b" common\n},
204-
%r{^LogFormat "%v %h %l %u %t \"%r\" %>s %b" common\n},
205-
%r{^LogFormat "%v %h %l %u %t \"%r\" %>s %b \"%\{Referer\}i\" \"%\{User-agent\}i\"" combined\n},
203+
%r{^LogFormat "%v %h %l %u %t "%r" %>s %b" common\n},
204+
%r{^LogFormat "%v %h %l %u %t "%r" %>s %b" common\n},
205+
%r{^LogFormat "%v %h %l %u %t "%r" %>s %b "%\{Referer\}i" "%\{User-agent\}i"" combined\n},
206206
]
207207
unexpected = [
208-
%r{^LogFormat "%h %l %u %t \"%r\" %>s %b \"%\{Referer\}i\" \"%\{User-agent\}i\"" combined\n},
209-
%r{^LogFormat "%h %l %u %t \"%r\" %>s %b \"%\{Referer\}i\" \"%\{User-agent\}i\"" combined\n},
208+
%r{^LogFormat "%h %l %u %t "%r" %>s %b "%\{Referer\}i" "%\{User-agent\}i"" combined\n},
209+
%r{^LogFormat "%h %l %u %t "%r" %>s %b "%\{Referer\}i" "%\{User-agent\}i"" combined\n},
210210
]
211211
it 'Expected to contain' do
212212
expected.each do |reg|

spec/classes/mod/alias_spec.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,21 @@
1010
include_examples 'Debian 11'
1111

1212
it { is_expected.to contain_apache__mod('alias') }
13-
it { is_expected.to contain_file('alias.conf').with(content: %r{Alias \/icons\/ "\/usr\/share\/apache2\/icons\/"}) }
13+
it { is_expected.to contain_file('alias.conf').with(content: %r{Alias /icons/ "/usr/share/apache2/icons/"}) }
1414
end
1515

1616
context 'on a RedHat 7-based OS', :compile do
1717
include_examples 'RedHat 7'
1818

1919
it { is_expected.to contain_apache__mod('alias') }
20-
it { is_expected.to contain_file('alias.conf').with(content: %r{Alias \/icons\/ "\/usr\/share\/httpd\/icons\/"}) }
20+
it { is_expected.to contain_file('alias.conf').with(content: %r{Alias /icons/ "/usr/share/httpd/icons/"}) }
2121
end
2222

2323
context 'on a RedHat 8-based OS', :compile do
2424
include_examples 'RedHat 8'
2525

2626
it { is_expected.to contain_apache__mod('alias') }
27-
it { is_expected.to contain_file('alias.conf').with(content: %r{Alias \/icons\/ "\/usr\/share\/httpd\/icons\/"}) }
27+
it { is_expected.to contain_file('alias.conf').with(content: %r{Alias /icons/ "/usr/share/httpd/icons/"}) }
2828
end
2929

3030
context 'with icons options', :compile do
@@ -56,7 +56,7 @@
5656
include_examples 'RedHat 7'
5757

5858
it { is_expected.to contain_apache__mod('alias') }
59-
it { is_expected.to contain_file('alias.conf').with(content: %r{Alias \/apache-icons\/ "\/usr\/share\/httpd\/icons\/"}) }
59+
it { is_expected.to contain_file('alias.conf').with(content: %r{Alias /apache-icons/ "/usr/share/httpd/icons/"}) }
6060
end
6161

6262
context 'with icons path as false', :compile do
@@ -79,7 +79,7 @@
7979
include_examples 'FreeBSD 10'
8080

8181
it { is_expected.to contain_apache__mod('alias') }
82-
it { is_expected.to contain_file('alias.conf').with(content: %r{Alias \/icons\/ "\/usr\/local\/www\/apache24\/icons\/"}) }
82+
it { is_expected.to contain_file('alias.conf').with(content: %r{Alias /icons/ "/usr/local/www/apache24/icons/"}) }
8383
end
8484
end
8585
end

spec/classes/mod/auth_mellon_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929

3030
it { is_expected.to contain_file('auth_mellon.conf').with_content(%r{^MellonCacheSize\s+200$}) }
3131
it { is_expected.to contain_file('auth_mellon.conf').with_content(%r{^MellonCacheEntrySize\s+2010$}) }
32-
it { is_expected.to contain_file('auth_mellon.conf').with_content(%r{^MellonLockFile\s+"\/tmp\/junk"$}) }
33-
it { is_expected.to contain_file('auth_mellon.conf').with_content(%r{^MellonPostDirectory\s+"\/tmp\/post"$}) }
32+
it { is_expected.to contain_file('auth_mellon.conf').with_content(%r{^MellonLockFile\s+"/tmp/junk"$}) }
33+
it { is_expected.to contain_file('auth_mellon.conf').with_content(%r{^MellonPostDirectory\s+"/tmp/post"$}) }
3434
it { is_expected.to contain_file('auth_mellon.conf').with_content(%r{^MellonPostTTL\s+5$}) }
3535
it { is_expected.to contain_file('auth_mellon.conf').with_content(%r{^MellonPostSize\s+8$}) }
3636
it { is_expected.to contain_file('auth_mellon.conf').with_content(%r{^MellonPostCount\s+10$}) }
@@ -61,8 +61,8 @@
6161

6262
it { is_expected.to contain_file('auth_mellon.conf').with_content(%r{^MellonCacheSize\s+200$}) }
6363
it { is_expected.to contain_file('auth_mellon.conf').with_content(%r{^MellonCacheEntrySize\s+2010$}) }
64-
it { is_expected.to contain_file('auth_mellon.conf').with_content(%r{^MellonLockFile\s+"\/tmp\/junk"$}) }
65-
it { is_expected.to contain_file('auth_mellon.conf').with_content(%r{^MellonPostDirectory\s+"\/tmp\/post"$}) }
64+
it { is_expected.to contain_file('auth_mellon.conf').with_content(%r{^MellonLockFile\s+"/tmp/junk"$}) }
65+
it { is_expected.to contain_file('auth_mellon.conf').with_content(%r{^MellonPostDirectory\s+"/tmp/post"$}) }
6666
it { is_expected.to contain_file('auth_mellon.conf').with_content(%r{^MellonPostTTL\s+5$}) }
6767
it { is_expected.to contain_file('auth_mellon.conf').with_content(%r{^MellonPostSize\s+8$}) }
6868
it { is_expected.to contain_file('auth_mellon.conf').with_content(%r{^MellonPostCount\s+10$}) }

spec/classes/mod/disk_cache_spec.rb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
it {
2828
is_expected.to contain_file('disk_cache.conf')
29-
.with(content: %r{CacheEnable disk \/\nCacheRoot \"\/var\/cache\/apache2\/mod_cache_disk\"\nCacheDirLevels 2\nCacheDirLength 1\nCacheIgnoreHeaders Set-Cookie})
29+
.with(content: %r{CacheEnable disk /\nCacheRoot "/var/cache/apache2/mod_cache_disk"\nCacheDirLevels 2\nCacheDirLength 1\nCacheIgnoreHeaders Set-Cookie})
3030
}
3131

3232
context 'with $default_cache_enable = false' do
@@ -39,7 +39,7 @@
3939

4040
it {
4141
is_expected.to contain_file('disk_cache.conf')
42-
.with(content: %r{CacheRoot \"\/var\/cache\/apache2\/mod_cache_disk\"\nCacheDirLevels 2\nCacheDirLength 1\n})
42+
.with(content: %r{CacheRoot "/var/cache/apache2/mod_cache_disk"\nCacheDirLevels 2\nCacheDirLength 1\n})
4343
}
4444
end
4545

@@ -53,7 +53,7 @@
5353

5454
it {
5555
is_expected.to contain_file('disk_cache.conf')
56-
.with(content: %r{CacheEnable disk \/\nCacheRoot \"\/var\/cache\/apache2\/mod_cache_disk\"\nCacheDirLevels 2\nCacheDirLength 1\n})
56+
.with(content: %r{CacheEnable disk /\nCacheRoot "/var/cache/apache2/mod_cache_disk"\nCacheDirLevels 2\nCacheDirLength 1\n})
5757
}
5858
end
5959

@@ -84,7 +84,7 @@
8484

8585
it {
8686
is_expected.to contain_file('disk_cache.conf')
87-
.with(content: %r{CacheEnable disk \/\nCacheRoot \"\/var\/cache\/httpd\/proxy\"\nCacheDirLevels 2\nCacheDirLength 1\nCacheIgnoreHeaders Set-Cookie})
87+
.with(content: %r{CacheEnable disk /\nCacheRoot "/var/cache/httpd/proxy"\nCacheDirLevels 2\nCacheDirLength 1\nCacheIgnoreHeaders Set-Cookie})
8888
}
8989

9090
context 'with $default_cache_enable = false' do
@@ -97,7 +97,7 @@
9797

9898
it {
9999
is_expected.to contain_file('disk_cache.conf')
100-
.with(content: %r{CacheRoot \"\/var\/cache\/httpd\/proxy\"\nCacheDirLevels 2\nCacheDirLength 1\n})
100+
.with(content: %r{CacheRoot "/var/cache/httpd/proxy"\nCacheDirLevels 2\nCacheDirLength 1\n})
101101
}
102102
end
103103

@@ -111,7 +111,7 @@
111111

112112
it {
113113
is_expected.to contain_file('disk_cache.conf')
114-
.with(content: %r{CacheEnable disk \/\nCacheRoot \"\/var\/cache\/httpd\/proxy\"\nCacheDirLevels 2\nCacheDirLength 1\n})
114+
.with(content: %r{CacheEnable disk /\nCacheRoot "/var/cache/httpd/proxy"\nCacheDirLevels 2\nCacheDirLength 1\n})
115115
}
116116
end
117117

@@ -145,7 +145,7 @@
145145

146146
it {
147147
is_expected.to contain_file('disk_cache.conf')
148-
.with(content: %r{CacheEnable disk \/\nCacheRoot \"\/var\/cache\/mod_cache_disk\"\nCacheDirLevels 2\nCacheDirLength 1\nCacheIgnoreHeaders Set-Cookie})
148+
.with(content: %r{CacheEnable disk /\nCacheRoot "/var/cache/mod_cache_disk"\nCacheDirLevels 2\nCacheDirLength 1\nCacheIgnoreHeaders Set-Cookie})
149149
}
150150

151151
context 'with $default_cache_enable = false' do
@@ -158,7 +158,7 @@
158158

159159
it {
160160
is_expected.to contain_file('disk_cache.conf')
161-
.with(content: %r{CacheRoot \"\/var\/cache\/mod_cache_disk\"\nCacheDirLevels 2\nCacheDirLength 1\n})
161+
.with(content: %r{CacheRoot "/var/cache/mod_cache_disk"\nCacheDirLevels 2\nCacheDirLength 1\n})
162162
}
163163
end
164164

@@ -172,7 +172,7 @@
172172

173173
it {
174174
is_expected.to contain_file('disk_cache.conf')
175-
.with(content: %r{CacheEnable disk \/\nCacheRoot \"\/var\/cache\/mod_cache_disk\"\nCacheDirLevels 2\nCacheDirLength 1\n})
175+
.with(content: %r{CacheEnable disk /\nCacheRoot "/var/cache/mod_cache_disk"\nCacheDirLevels 2\nCacheDirLength 1\n})
176176
}
177177
end
178178

spec/classes/mod/passenger_spec.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -399,31 +399,31 @@
399399
{ mod_path: '/usr/lib/foo/mod_foo.so' }
400400
end
401401

402-
it { is_expected.to contain_file('zpassenger.load').with_content(%r{^LoadModule passenger_module \/usr\/lib\/foo\/mod_foo\.so$}) }
402+
it { is_expected.to contain_file('zpassenger.load').with_content(%r{^LoadModule passenger_module /usr/lib/foo/mod_foo\.so$}) }
403403
end
404404

405405
describe "with mod_lib_path => '/usr/lib/foo'" do
406406
let :params do
407407
{ mod_lib_path: '/usr/lib/foo' }
408408
end
409409

410-
it { is_expected.to contain_file('zpassenger.load').with_content(%r{^LoadModule passenger_module \/usr\/lib\/foo\/mod_passenger\.so$}) }
410+
it { is_expected.to contain_file('zpassenger.load').with_content(%r{^LoadModule passenger_module /usr/lib/foo/mod_passenger\.so$}) }
411411
end
412412

413413
describe "with mod_lib => 'mod_foo.so'" do
414414
let :params do
415415
{ mod_lib: 'mod_foo.so' }
416416
end
417417

418-
it { is_expected.to contain_file('zpassenger.load').with_content(%r{^LoadModule passenger_module \/usr\/lib\/apache2\/modules\/mod_foo\.so$}) }
418+
it { is_expected.to contain_file('zpassenger.load').with_content(%r{^LoadModule passenger_module /usr/lib/apache2/modules/mod_foo\.so$}) }
419419
end
420420

421421
describe "with mod_id => 'mod_foo'" do
422422
let :params do
423423
{ mod_id: 'mod_foo' }
424424
end
425425

426-
it { is_expected.to contain_file('zpassenger.load').with_content(%r{^LoadModule mod_foo \/usr\/lib\/apache2\/modules\/mod_passenger\.so$}) }
426+
it { is_expected.to contain_file('zpassenger.load').with_content(%r{^LoadModule mod_foo /usr/lib/apache2/modules/mod_passenger\.so$}) }
427427
end
428428

429429
context 'with defaults' do
@@ -459,15 +459,15 @@
459459
{ passenger_root: '/usr/lib/example' }
460460
end
461461

462-
it { is_expected.to contain_file('passenger.conf').with_content(%r{^ PassengerRoot "\/usr\/lib\/example"$}) }
462+
it { is_expected.to contain_file('passenger.conf').with_content(%r{^ PassengerRoot "/usr/lib/example"$}) }
463463
end
464464

465465
describe 'with passenger_ruby => /usr/lib/example/ruby' do
466466
let :params do
467467
{ passenger_ruby: '/usr/lib/example/ruby' }
468468
end
469469

470-
it { is_expected.to contain_file('passenger.conf').with_content(%r{^ PassengerRuby "\/usr\/lib\/example\/ruby"$}) }
470+
it { is_expected.to contain_file('passenger.conf').with_content(%r{^ PassengerRuby "/usr/lib/example/ruby"$}) }
471471
end
472472
end
473473
when '7'

spec/classes/mod/security_spec.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -189,13 +189,13 @@
189189
else
190190
it {
191191
is_expected.to contain_file('/etc/httpd/modsecurity.d/security_crs.conf').with_content \
192-
%r{^SecAction \\\n\s+\"id:900000,\\\n\s+phase:1,\\\n\s+nolog,\\\n\s+pass,\\\n\s+t:none,\\\n\s+setvar:tx.paranoia_level=1"$}
192+
%r{^SecAction \\\n\s+"id:900000,\\\n\s+phase:1,\\\n\s+nolog,\\\n\s+pass,\\\n\s+t:none,\\\n\s+setvar:tx.paranoia_level=1"$}
193193
is_expected.to contain_file('/etc/httpd/modsecurity.d/security_crs.conf').with_content \
194-
%r{^SecAction \\\n\s+\"id:900001,\\\n\s+phase:1,\\\n\s+nolog,\\\n\s+pass,\\\n\s+t:none,\\\n\s+setvar:tx.executing_paranoia_level=2"$}
194+
%r{^SecAction \\\n\s+"id:900001,\\\n\s+phase:1,\\\n\s+nolog,\\\n\s+pass,\\\n\s+t:none,\\\n\s+setvar:tx.executing_paranoia_level=2"$}
195195
is_expected.to contain_file('/etc/httpd/modsecurity.d/security_crs.conf').with_content \
196196
%r{
197197
^SecAction\ \\\n
198-
\s+\"id:900700,\\\n
198+
\s+"id:900700,\\\n
199199
\s+phase:1,\\\n
200200
\s+nolog,\\\n
201201
\s+pass,\\\n
@@ -385,13 +385,13 @@
385385

386386
it {
387387
is_expected.to contain_file('/etc/modsecurity/security_crs.conf').with_content \
388-
%r{^SecAction \\\n\s+\"id:900000,\\\n\s+phase:1,\\\n\s+nolog,\\\n\s+pass,\\\n\s+t:none,\\\n\s+setvar:tx.paranoia_level=1"$}
388+
%r{^SecAction \\\n\s+"id:900000,\\\n\s+phase:1,\\\n\s+nolog,\\\n\s+pass,\\\n\s+t:none,\\\n\s+setvar:tx.paranoia_level=1"$}
389389
is_expected.to contain_file('/etc/modsecurity/security_crs.conf').with_content \
390-
%r{^SecAction \\\n\s+\"id:900001,\\\n\s+phase:1,\\\n\s+nolog,\\\n\s+pass,\\\n\s+t:none,\\\n\s+setvar:tx.executing_paranoia_level=1"$}
390+
%r{^SecAction \\\n\s+"id:900001,\\\n\s+phase:1,\\\n\s+nolog,\\\n\s+pass,\\\n\s+t:none,\\\n\s+setvar:tx.executing_paranoia_level=1"$}
391391
is_expected.to contain_file('/etc/modsecurity/security_crs.conf').with_content \
392392
%r{
393393
^SecAction\ \\\n
394-
\s+\"id:900700,\\\n
394+
\s+"id:900700,\\\n
395395
\s+phase:1,\\\n
396396
\s+nolog,\\\n
397397
\s+pass,\\\n

spec/classes/mod/ssl_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@
208208
}
209209
end
210210

211-
it { is_expected.to contain_file('ssl.conf').with_content(%r{^ SSLPassPhraseDialog exec:\/path\/to\/program$}) }
211+
it { is_expected.to contain_file('ssl.conf').with_content(%r{^ SSLPassPhraseDialog exec:/path/to/program$}) }
212212
end
213213

214214
context 'setting ssl_random_seed_bytes' do

spec/classes/mod/userdir_spec.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
end
2626

2727
it { is_expected.to contain_file('userdir.conf').with_content(%r{^\s*UserDir\s+/home/\*/hi$}) }
28-
it { is_expected.to contain_file('userdir.conf').with_content(%r{^\s*\<Directory\s+\"/home/\*/hi\"\>$}) }
28+
it { is_expected.to contain_file('userdir.conf').with_content(%r{^\s*<Directory\s+"/home/\*/hi">$}) }
2929
end
3030

3131
context 'with home set to something' do
@@ -36,7 +36,7 @@
3636
end
3737

3838
it { is_expected.to contain_file('userdir.conf').with_content(%r{^\s*UserDir\s+/u/\*/public_html$}) }
39-
it { is_expected.to contain_file('userdir.conf').with_content(%r{^\s*\<Directory\s+\"/u/\*/public_html"\>$}) }
39+
it { is_expected.to contain_file('userdir.conf').with_content(%r{^\s*<Directory\s+"/u/\*/public_html">$}) }
4040
end
4141

4242
context 'with path set to something' do
@@ -47,7 +47,7 @@
4747
end
4848

4949
it { is_expected.to contain_file('userdir.conf').with_content(%r{^\s*UserDir\s+/home/\*/\*/public_html$}) }
50-
it { is_expected.to contain_file('userdir.conf').with_content(%r{^\s*\<Directory\s+\"/home/\*/\*/public_html\"\>$}) }
50+
it { is_expected.to contain_file('userdir.conf').with_content(%r{^\s*<Directory\s+"/home/\*/\*/public_html">$}) }
5151
end
5252

5353
context 'with userdir set to something' do
@@ -59,7 +59,7 @@
5959
end
6060

6161
it { is_expected.to contain_file('userdir.conf').with_content(%r{^\s*UserDir\s+public_html$}) }
62-
it { is_expected.to contain_file('userdir.conf').with_content(%r{^\s*\<Directory\s+\"/home/\*/\*/public_html\"\>$}) }
62+
it { is_expected.to contain_file('userdir.conf').with_content(%r{^\s*<Directory\s+"/home/\*/\*/public_html">$}) }
6363
end
6464

6565
context 'with unmanaged_path set to true' do
@@ -70,7 +70,7 @@
7070
end
7171

7272
it { is_expected.to contain_file('userdir.conf').with_content(%r{^\s*UserDir\s+/home/\*/public_html$}) }
73-
it { is_expected.not_to contain_file('userdir.conf').with_content(%r{^\s*\<Directory }) }
73+
it { is_expected.not_to contain_file('userdir.conf').with_content(%r{^\s*<Directory }) }
7474
end
7575

7676
context 'with custom_fragment set to something' do

spec/classes/mod/wsgi_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@
4040
{ wsgi_socket_prefix: 'run/wsgi' }
4141
end
4242

43-
it { is_expected.to contain_file('wsgi.conf').with_content(%r{^ WSGISocketPrefix run\/wsgi$}) }
43+
it { is_expected.to contain_file('wsgi.conf').with_content(%r{^ WSGISocketPrefix run/wsgi$}) }
4444
end
4545

4646
describe 'with custom WSGIPythonHome' do
4747
let :params do
4848
{ wsgi_python_home: '/path/to/virtenv' }
4949
end
5050

51-
it { is_expected.to contain_file('wsgi.conf').with_content(%r{^ WSGIPythonHome "\/path\/to\/virtenv"$}) }
51+
it { is_expected.to contain_file('wsgi.conf').with_content(%r{^ WSGIPythonHome "/path/to/virtenv"$}) }
5252
end
5353

5454
describe 'with custom WSGIApplicationGroup' do

0 commit comments

Comments
 (0)