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: have_breadcrumb_item.rb
    path of file: ./repos/zammad/spec/support/custom_matchers/system/knowledge_base_public
    
    the code of the file until where you have to start completion: # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/

module Knowledge
    
      def breadcrumb_item_url
        @breadcrumb_item_url ||= begin
          elem = actual
            .all('.breadcrumbs .breadcrumb')
            .find do |item|
              item.find('span').text == expected
            end

          elem ? elem[:href] : nil
        end