Returns a Hash of instance variables and their
values, as defined by the user in the test case, which are then assigned to
the view being
rendered. This is generally intended for internal use and extension
frameworks.
# File actionpack/lib/action_view/test_case.rb, line 215
def view_assigns
Hash[_user_defined_ivars.map do |var|
[var[1, var.length].to_sym, instance_variable_get(var)]
end]
end