Check for the presence of a line in a file via rpsec

Hello,

Despite my researching, I cannot find a way to test for the presence or absence of a line in a file, using rspec. Any help/advice will be greatly appreciated!

Thank you