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

RSpec.describe 'phone rate limitting', allowed_extra_analytics: [:*] do
  let(:phone) { '2025551234' }

  context 'on sign up' do
    let!(:user) { sig
    
    def visit_otp_confirmation(delivery_method)
      sign_in_live_with_2fa(user)
      within('.sidenav-mobile') do
        click_on t('account.navigation.add_phone_number')
      end
      fill_in :new_phone_form_phone, with: phone
      select_phone_delivery_option(delivery_method)
      click_send_one_time_code
    end