mirror of
https://github.com/inspec/inspec
synced 2024-11-10 15:14:23 +00:00
CFINSPEC-88: Extend documentation with be_mounted matcher
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
This commit is contained in:
parent
b98a802be3
commit
9b3900350a
1 changed files with 9 additions and 0 deletions
|
@ -829,3 +829,12 @@ The `have_mode` matcher tests if a file has a mode assigned to it.
|
|||
it { should be_immutable }
|
||||
end
|
||||
```
|
||||
|
||||
### be_mounted
|
||||
`be_mounted` is a boolean matcher which returns `true` if the specified directory is mounted on the system, otherwise `false`. Additionally, to test the attributes of the mounted directory, use the `mount` resource.
|
||||
|
||||
```ruby
|
||||
describe file("/") do
|
||||
it { should be_mounted }
|
||||
end
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue