diff options
author | Noah Kantrowitz <noah@coderanger.net> | 2018-07-11 12:55:34 -0700 |
---|---|---|
committer | Noah Kantrowitz <noah@coderanger.net> | 2018-07-11 12:55:34 -0700 |
commit | 61765d9d13793912f2032dce1fcdf092ef07d700 (patch) | |
tree | 1415bb2a5ff556aacb29b9b3c6a67b5407b83b90 /spec | |
parent | d730505bb0d53d14c7b005c756ed4993b95fdf94 (diff) | |
download | chef-61765d9d13793912f2032dce1fcdf092ef07d700.tar.gz |
Use the right class for the reset.
Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
Diffstat (limited to 'spec')
-rw-r--r-- | spec/integration/knife/config_get_profile_spec.rb | 2 | ||||
-rw-r--r-- | spec/integration/knife/config_use_profile_spec.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/integration/knife/config_get_profile_spec.rb b/spec/integration/knife/config_get_profile_spec.rb index 4566b790ce..e97b24b869 100644 --- a/spec/integration/knife/config_get_profile_spec.rb +++ b/spec/integration/knife/config_get_profile_spec.rb @@ -42,7 +42,7 @@ describe "knife config get-profile", :workstation do ChefConfig::PathHelper.per_tool_home_environment = "KNIFE_HOME" # Clear these out because they are cached permanently. ChefConfig::PathHelper.class_exec { remove_class_variable(:@@home_dir) } - Chef::Knife::ConfigGet.reset_config_loader! + Chef::Knife::ConfigGetProfile.reset_config_loader! begin ex.run ensure diff --git a/spec/integration/knife/config_use_profile_spec.rb b/spec/integration/knife/config_use_profile_spec.rb index 5b224aefe4..a021dbbe6f 100644 --- a/spec/integration/knife/config_use_profile_spec.rb +++ b/spec/integration/knife/config_use_profile_spec.rb @@ -43,7 +43,7 @@ describe "knife config use-profile", :workstation do ChefConfig::PathHelper.per_tool_home_environment = "KNIFE_HOME" # Clear these out because they are cached permanently. ChefConfig::PathHelper.class_exec { remove_class_variable(:@@home_dir) } - Chef::Knife::ConfigGet.reset_config_loader! + Chef::Knife::ConfigUseProfile.reset_config_loader! begin ex.run ensure |