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

require 'test_helper'

class ConfirmableTest 
    
  def confirm_user_by_token_with_confirmation_sent_at(confirmation_sent_at)
    user = create_user
    user.update_attribute(:confirmation_sent_at, confirmation_sent_at)
    confirmed_user = User.confirm_by_token(user.raw_confirmation_token)
    assert_equal user, confirmed_user
    user.reload.confirmed?
  end