Topic: any way to test style tags in head?

I have my styles separated into a number of different css files, so that things are more modular, and only some of those css files will be included when a given action is rendered.  is there any way for my functional tests to make sure the right css files are being included in the right order when a given action is rendered?

Re: any way to test style tags in head?

I'm pretty sure you can use assert_tag :link, :attributes => {:href => 'blahblah.css'}

Re: any way to test style tags in head?

okay, yeah that works.  i got confused by the api, which describes the assert_tag with:

Asserts that there is a tag/node/element in the body of the response ...

which is confusing since "body of the response" could easily be misinterpreted as referring to just what's inside of the <body> element of the rendered page, rather than the entire page (that's where I got mixed up).

anyway, thanks for the help.