I'm trying to test that a view was rendered with a given layout. How can I test which layout was used for the call to render() ?
views:
80answers:
2There is no controller.layout in rails3 as far as I can tell
lowellk
2010-09-09 01:36:25
+1
A:
David Chelimsky posted a good answer over on the Ruby Forum:
response.should render_template("layouts/some_layout")
Kevin Ansfield
2010-09-28 13:38:39