From 87f7c652fed4312275c5d29b94f338323ecae12a Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Fri, 9 Sep 2016 00:13:56 -0700 Subject: [PATCH] Update tests for new config comment blocks Signed-off-by: Tim Smith --- test/integration/aliases/serverspec/aliases_spec.rb | 2 +- test/integration/default/serverspec/default_spec.rb | 2 +- test/integration/sasl_auth/serverspec/sasl_auth_spec.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/integration/aliases/serverspec/aliases_spec.rb b/test/integration/aliases/serverspec/aliases_spec.rb index 644298e..7376e79 100644 --- a/test/integration/aliases/serverspec/aliases_spec.rb +++ b/test/integration/aliases/serverspec/aliases_spec.rb @@ -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 diff --git a/test/integration/default/serverspec/default_spec.rb b/test/integration/default/serverspec/default_spec.rb index 2217efe..9ff44b4 100644 --- a/test/integration/default/serverspec/default_spec.rb +++ b/test/integration/default/serverspec/default_spec.rb @@ -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 diff --git a/test/integration/sasl_auth/serverspec/sasl_auth_spec.rb b/test/integration/sasl_auth/serverspec/sasl_auth_spec.rb index 1df5ad2..34b1888 100644 --- a/test/integration/sasl_auth/serverspec/sasl_auth_spec.rb +++ b/test/integration/sasl_auth/serverspec/sasl_auth_spec.rb @@ -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