Add an example to assert the service

This commit is contained in:
Nate Riffe 2014-12-17 07:07:59 -06:00
parent f5e642d592
commit 78173fa80b

View File

@ -7,11 +7,19 @@ describe 'bind' do
context 'on Debian-derived systems' do context 'on Debian-derived systems' do
let(:facts) { super().merge({ :osfamily => 'Debian' }) } let(:facts) { super().merge({ :osfamily => 'Debian' }) }
it { should contain_package('bind').with({ it {
should contain_package('bind').with({
'ensure' => 'latest', 'ensure' => 'latest',
'name' => 'bind9' 'name' => 'bind9'
}) })
} }
it {
should contain_service('bind').with({
'ensure' => 'running',
'name' => 'bind9'
})
}
end end
end end