From 78173fa80b2f9e9182903d6da56603561da06245 Mon Sep 17 00:00:00 2001 From: Nate Riffe Date: Wed, 17 Dec 2014 07:07:59 -0600 Subject: [PATCH] Add an example to assert the service --- spec/classes/bind_spec.rb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/spec/classes/bind_spec.rb b/spec/classes/bind_spec.rb index 9fa50ba..2f87583 100644 --- a/spec/classes/bind_spec.rb +++ b/spec/classes/bind_spec.rb @@ -7,11 +7,19 @@ describe 'bind' do context 'on Debian-derived systems' do let(:facts) { super().merge({ :osfamily => 'Debian' }) } - it { should contain_package('bind').with({ + it { + should contain_package('bind').with({ 'ensure' => 'latest', 'name' => 'bind9' }) } + + it { + should contain_service('bind').with({ + 'ensure' => 'running', + 'name' => 'bind9' + }) + } end end