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: stacktrace_spec.rb
    path of file: ./repos/bugsnag-ruby/spec
    
    the code of the file until where you have to start completion: require 'spec_helper'

describe Bugsnag::Stacktrace do
  context "sending code" do
    it "includes code in the stack trace" do
      begin
        _a = 1
        _b = 2
        _c = 3
        "Test".prepnd "T"
        _d = 4
        _e = 5
        _f = 6
      rescue Exception => e
        Bugsnag.notify(e)
      end

      expect
    
    def out_project_trace(stacktrace)
      stacktrace.map do |trace_line|
        trace_line[:file] unless trace_line[:inProject]
      end.compact
    end

    it "with vendor_paths set to ['abc', 'xyz']" do
      configuration.vendor_paths = ['abc', 'xyz']
      stacktrace = Bugsnag::Stacktrace.process(backtrace, configuration)

      expect(out_project_trace(stacktrace)).to eq([
        "abc/other_lib/ignore_me.rb",
        "abc/lib/ignore_me.rb",
        "xyz/lib/ignore_me.rb",
      ])
    end

    it "with nested directories" do
      configuration.vendor_paths = ['abc/lib', 'xyz/lib']
      stacktrace = Bugsnag::Stacktrace.process(backtrace, configuration)

      expect(out_project_trace(stacktrace)).to eq([
        "abc/lib/ignore_me.rb",
        "xyz/lib/ignore_me.rb",
      ])
    end

    it "with vendor_paths set to ['abc_xyz/']" do
      configuration.vendor_paths = ['abc_xyz/']
      stacktrace = Bugsnag::Stacktrace.process(backtrace, configuration)

      expect(out_project_trace(stacktrace)).to eq(["abc_xyz/lib/dont.rb"])
    end
  end