Skip to content

Commit 100b827

Browse files
committed
fix unit tests
1 parent 8e0af54 commit 100b827

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

spec/defines/resource_server_spec.rb

+9-9
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
value: true,
8888
match: %r{\s+return\s+301\s+http://rspec\.example\.com\$request_uri;\n
8989
\s+access_log\s+/var/log/nginx/www.rspec.example.com.access.log;\n
90-
\s+error_log\s+/var/log/nginx/www.rspec.example.com.error.log;\n}x
90+
\s+error_log\s+/var/log/nginx/www.rspec.example.com.error.log error;\n}x
9191
},
9292
{
9393
title: 'should not contain www to non-www rewrite',
@@ -347,15 +347,15 @@
347347
title: 'should set error_log',
348348
attr: 'error_log',
349349
value: '/path/to/error.log',
350-
match: ' error_log /path/to/error.log;'
350+
match: ' error_log /path/to/error.log error;'
351351
},
352352
{
353353
title: 'should allow multiple error_log directives',
354354
attr: 'error_log',
355355
value: ['/path/to/error.log', 'syslog:server=localhost'],
356356
match: [
357-
' error_log /path/to/error.log;',
358-
' error_log syslog:server=localhost;'
357+
' error_log /path/to/error.log error;',
358+
' error_log syslog:server=localhost error;'
359359
]
360360
},
361361
{
@@ -444,7 +444,7 @@
444444
value: true,
445445
match: %r{\s+return\s+301\s+http://www.rspec\.example\.com\$request_uri;\n
446446
\s+access_log\s+/var/log/nginx/rspec.example.com.access.log;\n
447-
\s+error_log\s+/var/log/nginx/rspec.example.com.error.log;\n}x
447+
\s+error_log\s+/var/log/nginx/rspec.example.com.error.log error;\n}x
448448
},
449449
{
450450
title: 'should not contain non-www to www rewrite',
@@ -511,7 +511,7 @@
511511
value: true,
512512
match: %r{\s+return\s+301\s+https://www.rspec\.example\.com\$request_uri;\n
513513
\s+access_log\s+/var/log/nginx/ssl-rspec.example.com.access.log;\n
514-
\s+error_log\s+/var/log/nginx/ssl-rspec.example.com.error.log;\n}x
514+
\s+error_log\s+/var/log/nginx/ssl-rspec.example.com.error.log error;\n}x
515515
},
516516
{
517517
title: 'should not contain non-www to www rewrite',
@@ -1018,15 +1018,15 @@
10181018
title: 'should set error_log',
10191019
attr: 'error_log',
10201020
value: '/path/to/error.log',
1021-
match: ' error_log /path/to/error.log;'
1021+
match: ' error_log /path/to/error.log error;'
10221022
},
10231023
{
10241024
title: 'should allow multiple error_log directives',
10251025
attr: 'error_log',
10261026
value: ['/path/to/error.log', 'syslog:server=localhost'],
10271027
match: [
1028-
' error_log /path/to/error.log;',
1029-
' error_log syslog:server=localhost;'
1028+
' error_log /path/to/error.log error;',
1029+
' error_log syslog:server=localhost error;'
10301030
]
10311031
},
10321032
{

0 commit comments

Comments
 (0)