From: Michael Hashizume Date: Fri, 2 Feb 2024 00:40:00 +0000 (-0800) Subject: Update stdout call X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=9af68790535331cb40816b0af34bdfa3005d0ece;p=puppet-mailalias_core.git Update stdout call Previously in Beaker, you could use a standalone stdout method to access output from remote machines. This was deprecated in 2013 with voxpupuli/beaker@28b2510 and dropped entirely in voxpupuli/beaker@73a31c7. This commit replaces stdout in favor of calling stdout on Result objects. --- diff --git a/spec/acceptance/tests/query_spec.rb b/spec/acceptance/tests/query_spec.rb index 17e0bbf..43bbcaf 100644 --- a/spec/acceptance/tests/query_spec.rb +++ b/spec/acceptance/tests/query_spec.rb @@ -27,8 +27,8 @@ RSpec.context 'should be able to find an exisitng email alias' do non_windows_agents.each do |agent| it 'queries for the mail alias with puppet' do - on(agent, puppet_resource('mailalias', name)) do - fail_test "didn't find the scheduled_task #{name}" unless stdout.include? 'present' + on(agent, puppet_resource('mailalias', name)) do |res| + fail_test "didn't find the scheduled_task #{name}" unless res.stdout.include? 'present' end end end