How to select and assert nginx_conf entries

Continuing the discussion from Parameters test Inspec (files):

I have been trying to use the nginx_conf resource, but I can't seem to wrap my head around it.

I have a very simple case - I want to assert that the logs are correctly configured to go to the right place, e.g.:

http {
        access_log /var/log/nginx/access.log;
}

I know I can access the entries array -- but how do I make select entries of the array and make assertions on them?

I want to do something like

describe nginx_conf.http.entries.select{ |item| <some filter> }
  it { should cmp '/var/log/nginx/access.log' }
end

What kind of filter should I put in here?

Thanks!

Turns out I needed to make assertions on the params of the object:

  describe nginx_conf.http.entries[0].params["access_log"].flatten do
    it { should cmp ['/var/log/nginx/access_log'] }
  end