mirror of
https://github.com/inspec/inspec
synced 2024-11-27 07:00:39 +00:00
Changes 'matcher' to 'property' in examples (#2499)
Signed-off-by: kagarmoe <kgarmoe@chef.io>
This commit is contained in:
parent
7dc72c7491
commit
010ca42b2d
5 changed files with 5 additions and 5 deletions
|
@ -14,7 +14,7 @@ A `command` resource block declares a command to be run, one (or more) expected
|
|||
|
||||
describe bash('command') do
|
||||
it { should exist }
|
||||
its('matcher') { should eq 'output' }
|
||||
its('property') { should eq 'output' }
|
||||
end
|
||||
|
||||
where
|
||||
|
|
|
@ -14,7 +14,7 @@ A `command` resource block declares a command to be run, one (or more) expected
|
|||
|
||||
describe command('command') do
|
||||
it { should exist }
|
||||
its('matcher') { should eq 'output' }
|
||||
its('property') { should eq 'output' }
|
||||
end
|
||||
|
||||
where
|
||||
|
|
|
@ -13,7 +13,7 @@ Use the `etc_group` InSpec audit resource to test groups that are defined on Lin
|
|||
A `etc_group` resource block declares a collection of properties to be tested:
|
||||
|
||||
describe etc_group('path') do
|
||||
its('matcher') { should eq 'some_value' }
|
||||
its('property') { should eq 'some_value' }
|
||||
end
|
||||
|
||||
or:
|
||||
|
|
|
@ -13,7 +13,7 @@ Use the `os_env` InSpec audit resource to test the environment variables for the
|
|||
A `os_env` resource block declares an environment variable, and then declares its value:
|
||||
|
||||
describe os_env('VARIABLE') do
|
||||
its('matcher') { should eq 1 }
|
||||
its('property') { should eq 1 }
|
||||
end
|
||||
|
||||
where
|
||||
|
|
|
@ -17,7 +17,7 @@ A `powershell` resource block declares a Powershell script to be tested, and the
|
|||
EOH
|
||||
|
||||
describe powershell(script) do
|
||||
its('matcher') { should eq 'output' }
|
||||
its('property') { should eq 'output' }
|
||||
end
|
||||
|
||||
where
|
||||
|
|
Loading…
Reference in a new issue