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:
parent
12a9e84799
commit
f29fb0dd9e
1 changed files with 11 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue