Command resource


#1

The command resource displays the full output of a command. How can it be suppressed?


#2

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