Namespace
- MODULE ActionView::TestCase::Behavior::ClassMethods
- MODULE ActionView::TestCase::Behavior::Locals
- CLASS ActionView::TestCase::Behavior::RenderedViewsCollection
Methods
- #
- C
- P
- R
- S
Included Modules
- Rails::Dom::Testing::Assertions
- ActionView::Context
- ActionDispatch::Routing::PolymorphicRoutes
- AbstractController::Helpers
- ActionView::Helpers
- ActionView::RecordIdentifier
- ActionView::RoutingUrlFor
- ActiveSupport::Testing::ConstantLookup
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, :@view_flow, :@_subscribers, :@html_document ] |
Attributes
[RW] | controller | |
[RW] | output_buffer | |
[RW] | rendered |
Instance Public methods
_routes() Link
_test_case() Link
config() Link
protect_against_forgery?() Link
render(options = {}, local_assigns = {}, &block) Link
rendered_views() Link
setup_with_controller() Link
# File actionview/lib/action_view/test_case.rb, line 108 def setup_with_controller controller_class = Class.new(ActionView::TestCase::TestController) @controller = controller_class.new @request = @controller.request @view_flow = ActionView::OutputFlow.new # empty string ensures buffer has UTF-8 encoding as # new without arguments returns ASCII-8BIT encoded buffer like String#new @output_buffer = ActiveSupport::SafeBuffer.new "" @rendered = +"" test_case_instance = self controller_class.define_method(:_test_case) { test_case_instance } end