Ask Your Question

Revision history [back]

Using Serverspec command resource types you can make assertions about the output of any arbitrary command:

describe command('lvs') do
  its(:stdout) { should match /.../ }
end

Also try Google. :)