edge badge
Namespace
Methods
C
R
S
Included Modules
Constants
INTERNAL_IVARS = [ :@NAME, :@failures, :@assertions, :@__io__, :@_assertion_wrapped, :@_assertions, :@_result, :@_routes, :@controller, :@_layouts, :@_files, :@_rendered_views, :@method_name, :@output_buffer, :@_partials, :@passed, :@rendered, :@request, :@routes, :@tagged_logger, :@_templates, :@options, :@test_passed, :@view, :@view_context_class, :@_subscribers ]
 
Attributes
[RW] controller
[RW] output_buffer
[RW] rendered
Instance Public methods
config()
# File actionview/lib/action_view/test_case.rb, line 109
def config
  @controller.config if @controller.respond_to?(:config)
end
render(options = {}, local_assigns = {}, &block)
# File actionview/lib/action_view/test_case.rb, line 113
def render(options = {}, local_assigns = {}, &block)
  view.assign(view_assigns)
  @rendered << output = view.render(options, local_assigns, &block)
  output
end
rendered_views()
# File actionview/lib/action_view/test_case.rb, line 119
def rendered_views
  @_rendered_views ||= RenderedViewsCollection.new
end
setup_with_controller()
# File actionview/lib/action_view/test_case.rb, line 99
def setup_with_controller
  @controller = ActionView::TestCase::TestController.new
  @request = @controller.request
  @output_buffer = ActiveSupport::SafeBuffer.new
  @rendered = ''

  make_test_case_available_to_view!
  say_no_to_protect_against_forgery!
end