Lowell
2010-Sep-09 21:52 UTC
[rspec-users] In rails 3 and rspec 2, how can I test the layout used by a call to render() ?
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() ? The call that I want to test looks like this: render :some_view, :layout => ''some_layout'' Thanks! Lowell
David Chelimsky
2010-Sep-14 02:23 UTC
[rspec-users] In rails 3 and rspec 2, how can I test the layout used by a call to render() ?
On Sep 9, 2010, at 4:52 PM, Lowell wrote:> 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() ? > > The call that I want to test looks like this: > > render :some_view, :layout => ''some_layout''response.should render_template("layouts/some_layout")