Update Resource documentation for Users Resource (#2954)

The `shell` matcher have to be `shells` and expects an array.
Wrong:
`its('shell') { should eq "/sbin/nologin" }`

Got error:
```
     ×  Users with username =~ /stockservice-.*/ shell
     undefined method 'shell' for Users with username =~ /stockservice-.*/:#<Class:0x000055c2471fa900>
     Did you mean?  shells
```

Correct:
its('shells') { should eq ["/sbin/nologin"] }

I think it's an documentation mistake.
-----------------------------------------
$ inspec --version
2.1.43

Signed-off-by: Axel Kummer <axel.kummer@netresearch.de>
This commit is contained in:
Axel Kummer 2018-04-19 19:06:20 +02:00 committed by Jared Quick
parent 6428abfd4e
commit 923f5a9e56

View file

@ -108,7 +108,7 @@ where `0` represents the maximum number of days.
The `shell` matcher tests the path to the default shell for the user:
its('shell') { should eq '/bin/bash' }
its('shells') { should eq ['/bin/bash'] }
### uid