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: method_spec.rb
    path of file: ./repos/pakyow/support/spec/features/deprecatable
    
    the code of the file until where you have to start completion: require "pakyow/support/deprecatable"

RSpec.describe "deprecating a method" do
  before do
    allow(Pakyow::Support::Deprecator.global).to receive(:deprecated)
  end

  shared_examples "
    
        def foo; end
        deprecate :foo
      }.tap do |deprecatable|
        stub_const "DeprecatableClass", deprecatable
      end
    }

    let(:instance) {
      deprecatable.new
    }

    it "uses the correct reference" do
      expect(Pakyow::Support::Deprecator.global).to receive(:deprecated).with("Foo#foo", solution: "do not use")

      instance.foo
    end
  end