method
find_record_in_template
rails latest stable - Class:
Test::Unit::Assertions
find_record_in_template(key = nil)private
No documentation available.
# File actionpack/lib/action_controller/deprecated_assertions.rb, line 193
def find_record_in_template(key = nil)
assert_template_has(key)
record = @response.template_objects[key]
assert_not_nil(record)
assert_kind_of ActiveRecord::Base, record
return record
end