Accessing temlpate variables in tests

in
In your tests, you can easily access variables defined in your templates as:
@response.template_objects["key"]
and here's a concrete example:
assert(@response.template_objects["user"].errors.invalid?("password")