mirror of
https://github.com/inspec/inspec
synced 2024-11-10 15:14:23 +00:00
Update docs for registry keys with period characters (#3216)
Signed-off-by: James Stocks <jstocks@chef.io>
This commit is contained in:
parent
ca833afacf
commit
3b56223a52
1 changed files with 5 additions and 2 deletions
|
@ -149,10 +149,13 @@ The `name` matcher tests the value for the specified registry setting:
|
|||
|
||||
|
||||
<p class="warning">
|
||||
Any name with a dot will not work as expected: <code>its('explorer.exe') { should eq 'test' }</code>. This issue is tracked in <a href="https://github.com/chef/inspec/issues/1281">https://github.com/chef/inspec/issues/1281</a>
|
||||
Any name with a dot will not work as expected: <code>its('explorer.exe') { should eq 'test' }</code>. For details, see <a href="https://github.com/inspec/inspec/issues/1281">https://github.com/inspec/inspec/issues/1281</a>
|
||||
</p>
|
||||
|
||||
# instead of:
|
||||
# its('explorer.exe') { should eq 'test' }
|
||||
# use the following solution:
|
||||
# either use have_property_value...
|
||||
it { should have_property_value('explorer.exe', :string, 'test') }
|
||||
|
||||
# ...or provide the parts of the dot-separated name in an array
|
||||
its(['explorer', 'exe']) { should eq 'test' }
|
||||
|
|
Loading…
Reference in a new issue