Add specs

This commit is contained in:
Javier Bértoli
2013-04-30 06:28:48 -03:00
parent 3bcea81f82
commit 71e189ec6d
2 changed files with 22 additions and 2 deletions
+2 -2
View File
@@ -28,8 +28,8 @@ describe 'fail2ban' do
let(:facts) { {:operatingsystem => 'Debian' } }
let(:params) { {:jails_config => 'file', :jails_template => 'fail2ban/jail.local.erb', :jails => 'ssh' } }
it { should contain_file('jail.local').without_source }
it { should contain_file('jail.local').with_content(/"*ssh-iptables]
enabled = true*/) }
it { should contain_file('jail.local').with_content(/ssh-iptables\]
enabled = true/) }
end
describe 'Test jails managed throuh file - custom template' do