module RSpec::Core::HashImitatable

def [](key)

def [](key)
  issue_deprecation(:[], key)
  if directly_supports_attribute?(key)
    get_value(key)
  else
    extra_hash_attributes[key]
  end
end