puppet-bind/spec/classes/bind_spec.rb
Nate Riffe 7a74314a1e Make it all work again.
Previous iterations and even a release were all broken. The module works again,
sorry for the interlude.

- Giving up on params and moving to module_data (WIP)
- Change the Package and Service references to the static 'bind' name
- Add a meager amount of test coverage
2015-01-08 08:09:32 -06:00

25 lines
525 B
Ruby

# ex: syntax=ruby ts=2 sw=2 si et
require 'spec_helper'
describe 'bind' do
let(:facts) { { :concat_basedir => '/wtf' } }
it {
should contain_package('bind').with({
'ensure' => 'latest',
'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 {
should contain_service('bind').with({
'ensure' => 'running',
'name' => 'bind9'
})
}
end