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:
parent
9ee7636477
commit
6138e5132e
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user