Skip to content

Commit 0790a84

Browse files
committed
Better test
1 parent b949745 commit 0790a84

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: spec/acceptance/apt_backports_spec.rb

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
context 'update_had_no_effect script' do
77
let(:pp) do
88
<<-MANIFEST
9-
exec { 'Test the script':
10-
command => epp('apt/update_had_no_effect.sh.epp'),
11-
logoutput => true,
9+
exec { 'apt_update':
10+
command => 'echo apt updated the package cache.',
11+
logoutput => on_failure,
1212
provider => shell,
13-
returns => [0, 1],
13+
unless => epp('apt/update_had_no_effect.sh.epp'),
1414
}
1515
MANIFEST
1616
end

0 commit comments

Comments
 (0)