mirror of
https://github.com/saltstack-formulas/users-formula.git
synced 2026-07-17 10:46:16 +02:00
test(inspec): add test to check .vimrc file is generated properly
This commit is contained in:
@@ -0,0 +1,11 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
control 'vimrc is managed' do
|
||||||
|
title 'formula should manage .vimrc'
|
||||||
|
|
||||||
|
describe file('/home/vim_user/.vimrc') do
|
||||||
|
it { should be_owned_by 'vim_user' }
|
||||||
|
its('mode') { should cmp '0644' }
|
||||||
|
its('content') { should match(/syntax on/) }
|
||||||
|
end
|
||||||
|
end
|
||||||
Reference in New Issue
Block a user