module ActionView::TestCase::Behavior

def view_assigns

frameworks.
rendered. This is generally intended for internal use and extension
the user in the test case, which are then assigned to the view being
Returns a Hash of instance variables and their values, as defined by
def view_assigns
  Hash[_user_defined_ivars.map do |ivar|
    [ivar[1..-1].to_sym, instance_variable_get(ivar)]
  end]
end