From 0790a84cfc5e493c9a7b7a612b98e8f1621bbed9 Mon Sep 17 00:00:00 2001 From: "Robert A. Vincent II (Bob-Vee)" Date: Wed, 27 Sep 2023 11:57:18 -0400 Subject: [PATCH] Better test --- spec/acceptance/apt_backports_spec.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/acceptance/apt_backports_spec.rb b/spec/acceptance/apt_backports_spec.rb index 43ee622127..b57ce2ac65 100644 --- a/spec/acceptance/apt_backports_spec.rb +++ b/spec/acceptance/apt_backports_spec.rb @@ -6,11 +6,11 @@ context 'update_had_no_effect script' do let(:pp) do <<-MANIFEST - exec { 'Test the script': - command => epp('apt/update_had_no_effect.sh.epp'), - logoutput => true, + exec { 'apt_update': + command => 'echo apt updated the package cache.', + logoutput => on_failure, provider => shell, - returns => [0, 1], + unless => epp('apt/update_had_no_effect.sh.epp'), } MANIFEST end