Skip to content

Commit

Permalink
update the list of instance variables that are excluded from assigns …
Browse files Browse the repository at this point in the history
…in view tests

[#4930 state:resolved]

Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information
dchelimsky authored and josevalim committed Jun 22, 2010
1 parent 12a9e84 commit f29fb0d
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions actionpack/lib/action_view/test_case.rb
Expand Up @@ -159,24 +159,25 @@ def _view
end

EXCLUDE_IVARS = %w{
@_assertion_wrapped
@_result
@_view
@controller
@layouts
@locals
@method_name
@output_buffer
@partials
@rendered
@request
@routes
@templates
@view_context_class
@layouts
@partials
@controller

@method_name
@fixture_cache
@loaded_fixtures
@test_passed
@view_context_class
}

def _instance_variables
instance_variables - EXCLUDE_IVARS
instance_variables
end

def _assigns
Expand Down

0 comments on commit f29fb0d

Please sign in to comment.