Skip to content

Commit 569e927

Browse files
Felipe Zipitriamyii
authored andcommitted
test(inspec): add test to check .vimrc file is generated properly
1 parent a263a62 commit 569e927

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# frozen_string_literal: true
2+
3+
control 'vimrc is managed' do
4+
title 'formula should manage .vimrc'
5+
6+
describe file('/home/vim_user/.vimrc') do
7+
it { should be_owned_by 'vim_user' }
8+
its('mode') { should cmp '0644' }
9+
its('content') { should match(/syntax on/) }
10+
end
11+
end

0 commit comments

Comments
 (0)