View tests shouldn't rely on `first_render`
Reported by James Adam | October 30th, 2008 @ 07:56 AM
first_render attribute is gone from
ActionView::Base in edge rails, so the tests should
stop relying on it.
Comments and changes to this ticket
Hi, I tried globally changing the <%= self.first_render %> to <%= self.instance_variable_get(:@_first_render) %>
this seems to work pushing the errors to failures:
<"namespace/app_and_plugin/a_view (from app)"> expected but was <"namespace/app_and_plugin/a_view.html.erb (from app)">
This seems acceptable if the test condition was just changed from assert_response_body 'alpha_plugin/a_view' to assert_response_body 'alpha_plugin/a_view.html.erb'
would that still satisfy the test? are the file extensions a problem?