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: top_menu.rb
    path of file: ./repos/openproject/spec/support/components/projects
    
    the code of the file until where you have to start completion: #-- copyright
# OpenProject is an open source p
    
      def expect_result(name, disabled: false)
        within search_results do
          if disabled
            page.find(autocompleter_item_disabled_title_selector, text: name)
          else
            page.find(autocompleter_item_title_selector, text: name)
          end
        end