Commit a580bc05 authored by Peter Leitzen's avatar Peter Leitzen

Merge branch 'fix_application_context_spec_keyword_args' into 'master'

Fix depreciation warning for positional args for application context spec

See merge request gitlab-org/gitlab!48827
parents f20bdc4f 6545a5ee
......@@ -30,7 +30,7 @@ module Gitlab
Labkit::Context.current.to_h.include?(Labkit::Context.log_key(attribute_name))
end
def initialize(args)
def initialize(**args)
unknown_attributes = args.keys - APPLICATION_ATTRIBUTES.map(&:name)
raise ArgumentError, "#{unknown_attributes} are not known keys" if unknown_attributes.any?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment