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

RSpec.describe "App view / Parts / Default rendering", :app_integration do
  before do
    with_directory(make_tmp_dire
    
    def before_prepare
      write "slices/main/views/helpers.rb", <<~RUBY
        # auto_register: false

        module Main
          module Views
            module Helpers
              def slice_screaming_snake_case(str)
                _context.inflector
                  .underscore(str)
                  .gsub(/\s+/, "_")
                  .upcase + "!"
              end
            end