summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaire McQuin <claire@chef.io>2015-09-03 10:11:58 -0700
committerClaire McQuin <claire@chef.io>2015-09-03 11:18:24 -0700
commit89aaa6076b7c4c4aea0e797d8cfcf6639c90816a (patch)
tree043c4ad82da1facd26e47f7920928d755a4d28c7
parent30b588f7035c2a219bc96a0b055f1d0eb8e16d3c (diff)
downloadchef-89aaa6076b7c4c4aea0e797d8cfcf6639c90816a.tar.gz
Delete Root key and subkeys
-rw-r--r--spec/functional/win32/registry_helper_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/functional/win32/registry_helper_spec.rb b/spec/functional/win32/registry_helper_spec.rb
index 9ef6fd006f..ba0ae12495 100644
--- a/spec/functional/win32/registry_helper_spec.rb
+++ b/spec/functional/win32/registry_helper_spec.rb
@@ -556,11 +556,11 @@ describe 'Chef::Win32::Registry', :windows_only do
end
after(:all) do
- ::Win32::Registry::HKEY_LOCAL_MACHINE.open("Software\\Root", ::Win32::Registry::KEY_ALL_ACCESS | 0x0100) do |reg|
- reg.delete_key("Trunk", true)
+ ::Win32::Registry::HKEY_LOCAL_MACHINE.open("Software", ::Win32::Registry::KEY_ALL_ACCESS | 0x0100) do |reg|
+ reg.delete_key("Root", true)
end
- ::Win32::Registry::HKEY_LOCAL_MACHINE.open("Software\\Root", ::Win32::Registry::KEY_ALL_ACCESS | 0x0200) do |reg|
- reg.delete_key("Trunk", true)
+ ::Win32::Registry::HKEY_LOCAL_MACHINE.open("Software", ::Win32::Registry::KEY_ALL_ACCESS | 0x0200) do |reg|
+ reg.delete_key("Root", true)
end
end