Fix rubocop offenses

This commit is contained in:
Cédric Defortis 2017-05-02 14:58:14 +02:00
parent 8308595a57
commit 1254ab0026
3 changed files with 11 additions and 11 deletions

View File

@ -35,7 +35,7 @@ describe 'bind' do
algorithm: 'hmac-md5',
secret_bits: '512',
keydir: expected_confdir,
keyfile: 'rndc.key',
keyfile: 'rndc.key'
)
end
it { is_expected.to contain_file('/usr/local/bin/rndc-helper') }

View File

@ -24,14 +24,14 @@ describe 'bind::key' do
is_expected.to contain_file("#{expected_confdir}/keys/foobar-key").with(
owner: 'root',
group: expected_group,
content: /^key foobar-key/,
content: /^key foobar-key/
)
end
it do
is_expected.to contain_concat__fragment('bind-key-foobar-key').with(
order: '10',
target: "#{expected_confdir}/keys.conf",
content: "include \"#{expected_confdir}\/keys\/foobar-key\";\n",
content: "include \"#{expected_confdir}\/keys\/foobar-key\";\n"
)
end
end

View File

@ -4,14 +4,14 @@ describe 'bind::zone' do
on_supported_os.each do |os, facts|
context "on #{os}" do
let (:facts) {facts}
case facts[:os]['family']
when 'Debian'
expected_confdir = '/etc/bind'
expected_group = 'bind'
when 'RedHat'
expected_confdir = '/etc/named'
expected_group = 'named'
end
# case facts[:os]['family']
# when 'Debian'
# expected_confdir = '/etc/bind'
# expected_group = 'bind'
# when 'RedHat'
# expected_confdir = '/etc/named'
# expected_group = 'named'
# end
# Resource title:
let(:title) { 'foobar-zone' }
let(:params) do