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() ?
David Chelimsky posted a good answer over on the Ruby Forum:
response.should render_template("layouts/some_layout")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With