Skip to content

Commit

Permalink
Adds tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Morgan Haskel committed Feb 26, 2015
1 parent 3abb4c2 commit 3886f68
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions spec/classes/mod/alias_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,30 @@
it { is_expected.to contain_apache__mod("alias") }
it { is_expected.to contain_file("alias.conf").with(:content => /Alias \/icons\/ "\/usr\/share\/httpd\/icons\/"/) }
end
context "with icons options", :compile do
let :pre_condition do
'class { apache: default_mods => false }'
end
let :facts do
{
:id => 'root',
:kernel => 'Linux',
:osfamily => 'RedHat',
:operatingsystem => 'RedHat',
:operatingsystemrelease => '7',
:path => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
:concat_basedir => '/dne',
:is_pe => false,
}
end
let :params do
{
'icons_options' => 'foo'
}
end
it { is_expected.to contain_apache__mod("alias") }
it { is_expected.to contain_file("alias.conf").with(:content => /Options foo/) }
end
context "on a FreeBSD OS", :compile do
let :facts do
{
Expand Down

0 comments on commit 3886f68

Please sign in to comment.