Update tests for new config comment blocks
Signed-off-by: Tim Smith <tsmith@chef.io>
This commit is contained in:
parent
82bb0b1591
commit
87f7c652fe
@ -18,7 +18,7 @@ require_relative './spec_helper'
|
||||
describe 'postfix::aliases' do
|
||||
context 'configures' do
|
||||
describe file('/etc/aliases') do
|
||||
its(:content) { should match(/^# This file is generated by Chef for/) }
|
||||
its(:content) { should match(/^# Auto-generated by Chef/) }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -27,7 +27,7 @@ describe 'postfix::default' do
|
||||
|
||||
context 'configures' do
|
||||
describe file("#{postfix_conf_path}/main.cf") do
|
||||
its(:content) { should match(/^# Generated by Chef for /) }
|
||||
its(:content) { should match(/^# Auto-generated by Chef/) }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -18,7 +18,7 @@ describe 'postfix::sasl_auth' do
|
||||
let(:sasl_passwd_file) { '/etc/postfix/sasl_passwd' }
|
||||
|
||||
it 'manages postfix sasl_passwd' do
|
||||
expect(file(sasl_passwd_file).content).to match(/^# This file is generated by Chef for/)
|
||||
expect(file(sasl_passwd_file).content).to match(/^# Auto-generated by Chef/)
|
||||
end
|
||||
|
||||
it 'configures postfix to use the sasl_passwd file' do
|
||||
|
Loading…
x
Reference in New Issue
Block a user