Skip to content

Commit

Permalink
test case and chef style fix
Browse files Browse the repository at this point in the history
Signed-off-by: nikhil2611 <[email protected]>
  • Loading branch information
nikhil2611 committed Dec 13, 2023
1 parent d299edf commit b59efaf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/chef-cli/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def expected_omnibus_root

def default_package_home
if Chef::Platform.windows?
File.join(ENV["LOCALAPPDATA"], ChefCLI::Dist::PRODUCT_PKG_HOME).gsub('\\','/')
File.join(ENV["LOCALAPPDATA"], ChefCLI::Dist::PRODUCT_PKG_HOME).gsub("\\", "/")
else
File.expand_path("~/.#{ChefCLI::Dist::PRODUCT_PKG_HOME}")
end
Expand Down
2 changes: 1 addition & 1 deletion spec/unit/policyfile_services/clean_policies_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@
# this will continue to print that out until they remove HTTPServerException
expected_message = <<~ERROR
Failed to delete some policy revisions:
- appserver (4444444444444444444444444444444444444444444444444444444444444444): Net::HTTPServerException 403 \"Unauthorized\"
- appserver (4444444444444444444444444444444444444444444444444444444444444444): Net::HTTPClientException 403 \"Unauthorized\"
ERROR

expect { clean_policies_service.run }.to raise_error do |error|
Expand Down

0 comments on commit b59efaf

Please sign in to comment.