How do I check if the first line of the file contains a certain string using Inspec test? Currently, I am doing this.
describe file ('/path/to/file/filename')do
it { should exist }
its('content') { should match 'build/path/location' }
end
end
How can I make it better not to check the whole content but only the first line?