[rspec-users] testing a render layout statement in a controller

Bart Zonneveld zuperinfinite at gmail.com
Mon Oct 20 07:35:24 EDT 2008


On 16-okt-2008, at 8:50, Dave Gamphani Phiri wrote:

> Here, I was trying to test if the out put displays with a layouts/menu
> template.
> Can somebody help on how you test the render(:layout => "layouts/
> menu") statement in a controller or this is supposed to be tested in
> the view?

Try this:

render(:layout => "layouts/menu") and return

cheers,
bartz


More information about the rspec-users mailing list