diff options
author | Michael Hashizume <michael.hashizume@puppet.com> | 2024-02-01 16:40:00 -0800 |
---|---|---|
committer | Michael Hashizume <michael.hashizume@puppet.com> | 2024-02-01 16:40:00 -0800 |
commit | 9af68790535331cb40816b0af34bdfa3005d0ece (patch) | |
tree | 4c9756e5a7f37d31e365a67fb9f0ef33fdc522b5 | |
parent | de3a3cddd9382975d345587da51b3ba42b4671b3 (diff) | |
download | puppet-mailalias_core-9af68790535331cb40816b0af34bdfa3005d0ece.tar.gz puppet-mailalias_core-9af68790535331cb40816b0af34bdfa3005d0ece.tar.bz2 |
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.
-rw-r--r-- | spec/acceptance/tests/query_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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 |