1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

update the list of instance variables that are excluded from assigns in view tests

[#4930 state:resolved]

Signed-off-by: José Valim <jose.valim@gmail.com>
This commit is contained in:
David Chelimsky 2010-06-22 09:45:44 -05:00 committed by José Valim
parent 12a9e84799
commit f29fb0dd9e

View file

@ -159,24 +159,25 @@ module ActionView
end
EXCLUDE_IVARS = %w{
@_assertion_wrapped
@_result
@output_buffer
@rendered
@templates
@view_context_class
@layouts
@partials
@_view
@controller
@layouts
@locals
@method_name
@fixture_cache
@loaded_fixtures
@output_buffer
@partials
@rendered
@request
@routes
@templates
@test_passed
@view_context_class
}
def _instance_variables
instance_variables - EXCLUDE_IVARS
instance_variables
end
def _assigns