method

find_record_in_template

rails latest stable - Class: Test::Unit::Assertions

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v1.1.6) is shown here.

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