0
0
mirror of https://github.com/saltstack-formulas/users-formula.git synced 2026-05-23 19:20:54 +02:00

Add test to check .vimrc file is generated properly

This commit is contained in:
Felipe Zipitria 2019-10-30 18:01:52 -03:00
parent 9ee7636477
commit 6138e5132e

View File

@ -10,3 +10,13 @@ control 'users configuration' do
its('mode') { should cmp '0750' } its('mode') { should cmp '0750' }
end end
end end
control 'vim formula works' do
title 'formula should createfile'
describe file('/home/auser/.vimrc') do
it { should be_owned_by 'auser' }
its('mode') { should cmp '0644' }
its('content') { should match /syntax on/ }
end
end