The command resource displays the full output of a command. How can it be suppressed?
Write a command a that filters the output for you
describe command('your_command | grep -o your_filter') do
its('stdout') { should eq "your_filter" }
its('stderr') { should eq '' }
its('exit_status') { should eq 0 }
end
1 Like