Correct example to use message in both places

Thanks @kclinden

Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
This commit is contained in:
Jerry Aldrich 2019-07-18 10:06:59 -07:00
parent 4a5103802a
commit 74f0e7cf0e

View file

@ -95,7 +95,7 @@ Use `where` with [expect syntax](https://www.inspec.io/docs/reference/profiles/#
describe 'Password hashes in /etc/shadow' do describe 'Password hashes in /etc/shadow' do
it 'should only contain SHA512 hashes' do it 'should only contain SHA512 hashes' do
message = "Users without SHA512 hashes: #{bad_users.join(', ')}" message = "Users without SHA512 hashes: #{bad_users.join(', ')}"
expect(bad_users).to be_empty, failure_message expect(bad_users).to be_empty, message
end end
end end