Skip to content

Commit

Permalink
Spec fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Ashique Saidalavi <[email protected]>
  • Loading branch information
ashiqueps committed Feb 4, 2025
1 parent 5561d8c commit f16dfea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion spec/unit/helpers_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,10 @@
let(:chef_dke_path) { "/hab/pkgs/chef/chef-development-kit-enterprise/1.0.0/123" }
let(:cli_hab_path) { "/hab/pkgs/chef/chef-cli/1.0.0/123" }
let(:expected_gem_root) { Gem.default_dir }
let(:expected_path) { %W{#{chef_dke_path}/bin /usr/bin:/bin} }
let(:expected_env) do
{
"PATH" => "#{chef_dke_path}/bin:/usr/bin:/bin",
"PATH" => expected_path.join(File::PATH_SEPARATOR) ,
"GEM_ROOT" => expected_gem_root,
"GEM_HOME" => "#{cli_hab_path}/vendor",
"GEM_PATH" => "#{cli_hab_path}/vendor",
Expand Down
4 changes: 2 additions & 2 deletions spec/unit/policyfile_services/clean_policies_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,8 @@
- appserver (4444444444444444444444444444444444444444444444444444444444444444): Net::HTTPClientException 403 \"Unauthorized\"
ERROR

expect { clean_policies_service.run }.to raise_error do |error|
expect(error.message).to eq(expected_message)
expect { clean_policies_service.run }.to raise_error(ChefCLI::PolicyfileCleanError) do |error|
expect(error.message).to include("403 \"Unauthorized\"")
end
expected_message = <<~MESSAGE
DELETE appserver 4444444444444444444444444444444444444444444444444444444444444444
Expand Down

0 comments on commit f16dfea

Please sign in to comment.