method

scrub_env!

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: ActionController::TestCase::Behavior
scrub_env!(env) private

No documentation

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

Hide source
# File actionpack/lib/action_controller/test_case.rb, line 642
        def scrub_env!(env)
          env.delete_if do |k, _|
            k.start_with?("rack.request", "action_dispatch.request", "action_dispatch.rescue")
          end
          env["rack.input"] = StringIO.new
          env.delete "CONTENT_LENGTH"
          env.delete "RAW_POST_DATA"
          env
        end
Register or log in to add new notes.