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: eager_loaded_class_test.rb
    path of file: ./repos/active_model_cachers/test
    
    the code of the file until where you have to start completion: # frozen_string_literal: true
require 'base_test'

cl
    
  def test_update
    user = EagerLoaded::User.first

    assert_queries(1){ assert_equal 19, user.cacher.profile.point }
    assert_queries(0){ assert_equal 19, user.cacher.profile.point }
    assert_cache('active_model_cachers_EagerLoaded::Profile_by_user_id_1' => user.profile)

    assert_cache_queries(2) do # Delete cache at self and at self_by_user_id
      assert_queries(1){ user.profile.update(point: 12) }
    end
    assert_cache({})

    user = EagerLoaded::User.first
    assert_queries(1){ assert_equal 12, user.cacher.profile.point }
    assert_queries(0){ assert_equal 12, user.cacher.profile.point }
    assert_cache('active_model_cachers_EagerLoaded::Profile_by_user_id_1' => user.profile)
  ensure
    user.profile.update(point: 19)
  end