Add some simple gentoo specific tests
authorDaniel Jakob <wolverine@usox.org>
Sat, 28 Jun 2014 10:02:52 +0000 (12:02 +0200)
committerDaniel Jakob <wolverine@usox.org>
Sat, 28 Jun 2014 10:02:52 +0000 (12:02 +0200)
spec/classes/munin_host_spec.rb

index b707b5d..df002ce 100644 (file)
@@ -34,4 +34,14 @@ describe 'munin::host' do
   context 'on redhat-like system' do
     it_behaves_like 'redhat-host', 'CentOS', '6'
   end
+  
+  context 'on Gentoo' do
+    let(:facts) {{
+      :osfamily => 'Gentoo',
+      :concat_basedir => '/var/lib/puppet/concat',
+    }}
+    it { should contain_package('munin') }
+    it { should contain_file('/etc/munin/munin.conf') }
+    it { should contain_class('munin::host') }
+  end
 end