describe file('/etc/checkfiles/server.cfg') do
its(:content) {
should contain("\/usr\/lib64\/nagios\/plugins\/check_procs -w 150 -c 200")
.after(/command\[check_total_procs\]\=/)
}
end
I'm using contain matcher like this code, but it will be obsoleted. There is so many lines in 'server.cfg' and I want to check only 1line. How can I make same working code without contain matcher?