Skip to content

Commit

Permalink
Rubocop suggested fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jplindquist committed Jan 3, 2023
1 parent d49caed commit 659642c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/classes/nginx_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1146,7 +1146,7 @@

# if we have a _path attribute make sure we create the path
if param[:attr].end_with?('_path')
if ['client_body_temp_path', 'proxy_temp_path'].include?(param[:attr]) && param[:value].is_a?(Array)
if %w[client_body_temp_path proxy_temp_path].include?(param[:attr]) && param[:value].is_a?(Array)
is_expected.to contain_file(param[:value][0]).with_ensure('directory')
elsif param[:value].is_a?(Hash)
param[:value].each_key do |path|
Expand Down

0 comments on commit 659642c

Please sign in to comment.