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: notice_spec.rb
    path of file: ./repos/honeybadger-ruby/spec/unit/honeybadger
    
    the code of the file until where you have to start completion: # encoding: utf-8

require 'honeybadger/notice'
require 'honeybadger/config'
require 'honeybadger/plugi
    
  def assert_accepts_exception_attribute(attribute, args = {}, &block)
    exception = build_exception
    block ||= lambda { exception.send(attribute) }
    value = block.call(exception)

    notice_from_exception = build_notice(args.merge(exception: exception))

    expect(notice_from_exception.send(attribute)).to eq value

    notice_from_hash = build_notice(args.merge(attribute => value))
    expect(notice_from_hash.send(attribute)).to eq value
  end