跳至内容 跳至搜索
方法
R

属性

[读写] rendered_views

实例公共方法

render(options = {}, local_assigns = {})

# File actionview/lib/action_view/test_case.rb, line 339
def render(options = {}, local_assigns = {})
  case options
  when Hash
    if block_given?
      rendered_views.add options[:layout], options[:locals]
    elsif options.key?(:partial)
      rendered_views.add options[:partial], options[:locals]
    end
  else
    rendered_views.add options, local_assigns
  end

  super
end