test(inspec): add test to check `.vimrc` file is generated properly

This commit is contained in:
Felipe Zipitria 2019-10-30 18:01:52 -03:00 committed by Imran Iqbal
parent a263a62e75
commit 569e9276db
No known key found for this signature in database
GPG Key ID: 6D8629439D2B7819
1 changed files with 11 additions and 0 deletions

View File

@ -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