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: letter_spec.rb
    path of file: ./repos/letter_opener_web/spec/models/letter_opener_web
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

RSpec.describe LetterOpenerWeb::Letter do
  let(:location) { Pathname.new(__dir__).join('..', '..', 'tmp').cleanpath }

  def rich_text(mail_id)
    <<~MAIL
      Rich text for #{mail_id}
      <!DOCTYPE html>
      <body>
        <div id="container">
          <div id="message_headers">
            <dl>
              <dt>From:</dt>
              <dd>noreply@example.com</dd>
            </dl>
          </div>

          <a href='a-link.html'>
            <img src='an-image.jpg'>
            Link text
          </a>
          <a href
    
  def rich_text(mail_id)
    <<~MAIL
      Rich text for #{mail_id}
      <!DOCTYPE html>
      <body>
        <div id="container">
          <div id="message_headers">
            <dl>
              <dt>From:</dt>
              <dd>noreply@example.com</dd>
            </dl>
          </div>

          <a href='a-link.html'>
            <img src='an-image.jpg'>
            Link text
          </a>
          <a href='fooo.html'>Bar</a>
          <a href="example.html" class="blank"></a>
          <address><a href="inside-address.html">inside address</a></address>
        </div>
      </body>
    MAIL
  end