module ActionController::TestCase::Behavior
def scrub_env!(env)
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