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: unreachable_urls_rule_spec.rb
    path of file: ./repos/fastlane/precheck/spec/rules
    
    the code of the file until where you have to start completion: require 'precheck'

module Precheck
  describe Precheck do
    describe Precheck::UnreachableURLRule do
      let(:rule) { UnreachableURLRule.new }

      def setup_url_rule_mock(url: "http://fastlane.tools", return_status: 200)
    
      def setup_url_rule_mock(url: "http://fastlane.tools", return_status: 200)
        request = "fake request"
        head_object = "fake head object"

        allow(head_object).to receive(:status).and_return(return_status)

        allow(request).to receive(:use).and_return(nil)
        allow(request).to receive(:adapter).and_return(nil)
        allow(request).to receive(:head).and_return(head_object)

        uri = Addressable::URI.parse(url)
        allow(Faraday).to receive(:new).with(uri.normalize.to_s).and_return(request)
      end