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: assets_spec.rb
    path of file: ./repos/hanami/spec/integration/view/context
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

require "hanami"

RSpec.describe "App view / Context / Assets", :app_integration do
  subject(:context) { context_class.new }
  let(:context_class) { TestApp::Views::Context }

  before do
    with_directory(make_tmp_directory) do
      write "config/app.rb", <<~RUBY
        module TestApp
          class App < Hanami::App
            config.log
    
    def before_prepare
      # These must be here instead of an ordinary before hook because the Hanami.bundled? check for
      # assets is done as part of requiring "hanami/prepare" above.
      allow(Hanami).to receive(:bundled?).and_call_original
      allow(Hanami).to receive(:bundled?).with("hanami-assets").and_return(false)

      write "app/assets/.keep", ""
    end

    it "raises error" do
      expect { context.assets }.to raise_error(Hanami::ComponentLoadError, /hanami-assets gem/)
    end
  end