Initial commit

This commit is contained in:
2014-11-23 19:45:01 +00:00
commit 3b1b23732e
19 changed files with 625 additions and 0 deletions

23
spec/classes/init_spec.rb Normal file
View File

@@ -0,0 +1,23 @@
require 'spec_helper'
describe 'dokuwiki' do
context 'on unsupported distributions' do
let(:facts) {{
:osfamily => 'Unsupported',
}}
it 'we fail' do
expect { subject }.to raise_error(/not supported on an Unsupported/)
end
end
context 'with defaults for all parameters' do
let(:facts) {{
:osfamily => 'Gentoo',
}}
it { should contain_class('dokuwiki') }
it { should contain_class('dokuwiki::install') }
it { should contain_class('dokuwiki::config') }
end
end