Skip to content

Commit c824dc1

Browse files
nginx parsed config as attribute
Signed-off-by: Michée Lengronne <michee.lengronne@coppint.com>
1 parent bd1a676 commit c824dc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controls/nginx_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
nginx_conf = File.join(nginx_path, 'nginx.conf')
9797
nginx_confd = File.join(nginx_path, 'conf.d')
9898
nginx_enabled = File.join(nginx_path, 'sites-enabled')
99-
nginx_parsed_config = command('nginx -T').stdout
99+
nginx_parsed_config = attribute('nginx_parsed_config', value: command('nginx -T').stdout, description: 'Default nginx test command')
100100

101101
options = {
102102
assignment_regex: /^\s*([^:]*?)\s*\ \s*(.*?)\s*;$/

0 commit comments

Comments
 (0)