]> gitweb.fluxo.info Git - puppet-mailalias_core.git/commitdiff
Replace assert_no_match
authorMichael Hashizume <michael.hashizume@puppet.com>
Fri, 2 Feb 2024 00:38:48 +0000 (16:38 -0800)
committerMichael Hashizume <michael.hashizume@puppet.com>
Fri, 2 Feb 2024 00:38:48 +0000 (16:38 -0800)
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.

spec/acceptance/tests/destroy_spec.rb

index a5cb122f25d073740a16bc3d278119e19aee699a..380fc9693e1fe2e409b17d8e898cc38dda90c724 100644 (file)
@@ -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