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: confirmations_controller_spec.rb
    path of file: ./repos/mastodon/spec/controllers/settings/two_factor_authentication
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

require 'rails_helper'

describe Settings::TwoFactorAuthentication::ConfirmationsController do
  render_views

  shared_
    
        def prepare_user_otp_consumption_response(result)
          options = { otp_secret: 'thisisasecretforthespecofnewview' }
          allow(user)
            .to receive(:validate_and_consume_otp!)
            .with('123456', options)
            .and_return(result)
        end