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: enrollment_pipeline_spec.rb
    path of file: ./repos/identity-idp/spec/jobs/in_person/enrollments_ready_for_status_check
    
    the code of the file until where you have to start completion: require 'rails_helper'

RSpec.describe InPerson::EnrollmentsReadyForStatusCheck::EnrollmentPipeline do
  let(:error_reporter) { instance_double(InPerson::EnrollmentsReadyForStatusCheck::ErrorReporter) }
  let(:email_body_pattern) { /\A\s*(?<enroll
    
    def expect_error(error, **extra)
      expect(error_reporter).to receive(:report_error) do |err, err_extra|
        expect(err).to eq(error) if error.is_a?(String)
        expect(err.message).to eq(error.message) if error.is_a?(StandardError)
        expect(err.class).to eq(error.class)
        expect(err_extra).to eq(extra)
      end
      expect(enrollment_pipeline.process_message(sqs_message)).to be(false)
    end