add tests to check file fragments are absent

This commit is contained in:
Matthew Haughton 2013-12-02 13:58:23 -05:00
parent 486d03b685
commit 2ccd399a74

View file

@ -78,6 +78,16 @@ describe 'nginx::config' do
:group => 'root',
:mode => '0644'
)}
it { should contain_file("/tmp/nginx.d").with(
:ensure => 'absent',
:purge => true,
:recurse => true,
)}
it { should contain_file("/tmp/nginx.mail.d").with(
:ensure => 'absent',
:purge => true,
:recurse => true,
)}
end
end
end