I'm already asserting return value (on a next line). File.realpath is expected to raise Errno::ENOENT if file does not exist. So I'm checking that it can find a file & file path is correct.