From 6138e5132e35deff46fda3b0132ec2fc8da9fe18 Mon Sep 17 00:00:00 2001 From: Felipe Zipitria Date: Wed, 30 Oct 2019 18:01:52 -0300 Subject: [PATCH] Add test to check .vimrc file is generated properly --- test/integration/default/controls/config_spec.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/integration/default/controls/config_spec.rb b/test/integration/default/controls/config_spec.rb index 6af3cf9..0f28157 100644 --- a/test/integration/default/controls/config_spec.rb +++ b/test/integration/default/controls/config_spec.rb @@ -10,3 +10,13 @@ control 'users configuration' do its('mode') { should cmp '0750' } 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