[rspec-users] In rails 3 and rspec 2, how can I test the layout used by a call to render() ?

Lowell lowellk at gmail.com
Thu Sep 9 17:52:02 EDT 2010


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


More information about the rspec-users mailing list