Commit aaf49f63 authored by mh's avatar mh

fix typo and add a test for the define

parent df74c550
......@@ -22,7 +22,7 @@ define schleuder::list(
file{$real_admin_publickey:
owner => 'root',
group => 'schleuder',
mode => '0640'
mode => '0640',
seltype => 'schleuder_data_t',
}
if !$admin_publickey {
......
require 'spec_helper'
describe 'schleuder::list', :type => 'define' do
let(:facts){
{
:operatingsystem => 'CentOS',
:puppetversion => ENV['PUPPET_VERSION'].nil? ? '5.0.0' : ENV['PUPPET_VERSION'],
:concat_basedir => '/tmp',
}
}
let(:pre_condition){
'Exec{ path => "/tmp" }'
}
let(:title){ 'somelist@example.com' }
let(:params){ {
:admin => 'admin@example.com'
} }
context 'default' do
it { is_expected.to compile.with_all_deps }
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment