module ActionView::TestCase::Behavior::Locals - actionview-4.2.4 Documentation

# module ActionView::TestCase::Behavior::Locals

### Attributes

rendered_views[RW]

### Public Instance Methods

render(options = {}, local_assigns = {}) click to toggle source
Calls superclass method

    # File lib/action_view/test_case.rb, line 187
    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