setup_with_controller() public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionview/lib/action_view/test_case.rb, line 102
      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
Register or log in to add new notes.