CFINSPEC-88: Extend documentation with be_mounted matcher

Signed-off-by: Sonu Saha <sonu.saha@progress.com>
This commit is contained in:
Sonu Saha 2022-04-20 21:45:07 +05:30
parent b98a802be3
commit 9b3900350a

View file

@ -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
```