Skip to content

Commit

Permalink
test(inspec): add test to check .vimrc file is generated properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Felipe Zipitria authored and myii committed Nov 2, 2019
1 parent a263a62 commit 569e927
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/integration/vimrc/controls/config_spec.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 569e927

Please sign in to comment.