Namespace
- MODULE ActionView::TestCase::Behavior::ClassMethods
- MODULE ActionView::TestCase::Behavior::Locals
- CLASS ActionView::TestCase::Behavior::RenderedViewsCollection
Methods
Included Modules
- ActionDispatch::Assertions
- ActionDispatch::TestProcess
- Rails::Dom::Testing::Assertions
- ActionController::TemplateAssertions
- 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, :@_subscribers, :@html_document ] |
Attributes
[RW] | controller | |
[RW] | output_buffer | |
[RW] | rendered |
Instance Public methods
_routes()
Link
config()
Link
render(options = {}, local_assigns = {}, &block)
Link
rendered_views()
Link
setup_with_controller()
Link
# File actionview/lib/action_view/test_case.rb, line 101 def setup_with_controller @controller = ActionView::TestCase::TestController.new @request = @controller.request # 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 = "" make_test_case_available_to_view! say_no_to_protect_against_forgery! end