mirror of
https://github.com/saltstack-formulas/users-formula.git
synced 2026-10-07 20:58:52 +02:00
Add test to check .vimrc file is generated properly
This commit is contained in:
1 parent
9ee7636477
commit
6138e5132e
1 file changed
+10
@@ -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
|
||||||
Reference in new issue
Block a user