You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: stubbed_member.rb
    path of file: ./repos/gitlabhq/spec/support/helpers
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

# Extend the ProjectMember & GroupMember class with the ability to
# to run project_authoriza
    
    def refresh_member_authorized_projects
      # In stubbed_member the original methods stubbed would call .perform_async
      # so the affected workers would not be in a transaction in a non-test environment.
      Gitlab::ExclusiveLease.skipping_transaction_check do
        AuthorizedProjectsWorker.new.perform(user_id)
      end
    end