From: Michael Hashizume Date: Fri, 2 Feb 2024 00:38:48 +0000 (-0800) Subject: Replace assert_no_match X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=de3a3cddd9382975d345587da51b3ba42b4671b3;p=puppet-mailalias_core.git Replace assert_no_match The assert_no_match method in Beaker was long deprecated then eventually removed altogether in voxpupuli/beaker@6282311 This commit updates assert_no_match to refute_match. --- diff --git a/spec/acceptance/tests/destroy_spec.rb b/spec/acceptance/tests/destroy_spec.rb index a5cb122..380fc96 100644 --- a/spec/acceptance/tests/destroy_spec.rb +++ b/spec/acceptance/tests/destroy_spec.rb @@ -34,7 +34,7 @@ RSpec.context 'Mailalias: should delete an email alias' do # verify the alias is absent on(agent, 'cat /etc/aliases') do |res| - assert_no_match(%r{#{name}:.*foo,bar,baz}, res.stdout, 'mailalias was not removed from aliases file') + refute_match(%r{#{name}:.*foo,bar,baz}, res.stdout, 'mailalias was not removed from aliases file') end end end