Repository navigation
Conversation
| Win32::Registry::HKEY_CURRENT_USER.create(@test_registry_key).close | ||
|
|
||
| reg = Win32::Registry::HKEY_CURRENT_USER.open(backslachs(TEST_REGISTRY_KEY), Win32::Registry::KEY_ALL_ACCESS) | ||
| reg = Win32::Registry::HKEY_CURRENT_USER.open(@test_registry_key, Win32::Registry::KEY_ALL_ACCESS) |
There was a problem hiding this comment.
Since registry keys can include /, it is wrong to use File methods to split them.
There was a problem hiding this comment.
It's only used for testing, where we have full control about our test keys. Nevertheless I'll change it.
There was a problem hiding this comment.
My concern is that it might encourage to write wrong code in other places.
|
I thought it would be safer to use volatile environment registries, which disappear at reboot, to test. |
|
FYI: I merged I prefer this approach. |
|
I opened a new PR in #8 using volatile environment and avoiding |
|
Close in favor of #8. |
Regarding conversation in #5: