Make some assertions about ordering
This commit is contained in:
parent
78173fa80b
commit
f7740f2a05
@ -3,17 +3,22 @@ require 'spec_helper'
|
|||||||
|
|
||||||
describe 'bind' do
|
describe 'bind' do
|
||||||
let(:facts) { { :concat_basedir => '/wtf' } }
|
let(:facts) { { :concat_basedir => '/wtf' } }
|
||||||
|
let(:params) { { :confdir => '_CONFDIR_' } }
|
||||||
|
|
||||||
|
|
||||||
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 {
|
it {
|
||||||
should contain_package('bind').with({
|
should contain_package('bind').with({
|
||||||
'ensure' => 'latest',
|
'ensure' => 'latest',
|
||||||
'name' => 'bind9'
|
'name' => 'bind9'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
it { should contain_file('_CONFDIR_/named.conf').that_requires('Package[bind]') }
|
||||||
|
it { should contain_file('_CONFDIR_/named.conf').that_notifies('Service[bind]') }
|
||||||
|
|
||||||
it {
|
it {
|
||||||
should contain_service('bind').with({
|
should contain_service('bind').with({
|
||||||
'ensure' => 'running',
|
'ensure' => 'running',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user