Better assert_template output
Hey guys,
I've got a little feature request for you. The current assert_template
output looks kinda like that (Rails 3.0.8)
Failure/Error: response.should render_template('pages/422')
Expected block to return true value.
And what would be cool if the output actually said which template was rendered instead of the expected one, say like that
Failure/Error: response.should render_template('pages/422')
Expected to render 'pages/422' but rendered 'sessions/new' instead
Same thing with the assert_redirect_to
checks.
That could help finding out what went wrong in a controller.
Thanks, Nikolay