Commit a71dffeb authored by Matthias Käppler's avatar Matthias Käppler

Merge branch 'ld-remove-exclusion-from-deprecation_toolkit_env' into 'master'

Remove exclusion for graphql/schema.rb

See merge request gitlab-org/gitlab!67917
parents fd05a579 b5c74ea4
......@@ -47,16 +47,18 @@ module DeprecationToolkitEnv
end
# Taken from https://github.com/jeremyevans/ruby-warning/blob/1.1.0/lib/warning.rb#L18
# Note: When a spec fails due to this warning, please update the spec to address the deprecation.
def self.kwargs_warning
%r{warning: (?:Using the last argument (?:for `.+' )?as keyword parameters is deprecated; maybe \*\* should be added to the call|Passing the keyword argument (?:for `.+' )?as the last hash parameter is deprecated|Splitting the last argument (?:for `.+' )?into positional and keyword parameters is deprecated|The called method (?:`.+' )?is defined here)\n\z}
end
# Allow these Gem paths to trigger keyword warnings as we upgrade these gems
# one by one
# Note: No new exceptions should be added here, unless they are in external dependencies.
# In this case, we recommend to add a silence together with an issue to patch or update
# the dependency causing the problem.
# See https://gitlab.com/gitlab-org/gitlab/-/commit/aea37f506bbe036378998916d374966c031bf347#note_647515736
def self.allowed_kwarg_warning_paths
%w[
actionpack-6.1.3.2/lib/action_dispatch/routing/route_set.rb
graphql-1.11.8/lib/graphql/schema.rb
]
end
......
......@@ -37,7 +37,7 @@ RSpec.describe GitlabSchema do
describe '.execute' do
describe 'setting query `max_complexity` and `max_depth`' do
subject(:result) { described_class.execute('query', kwargs).query }
subject(:result) { described_class.execute('query', **kwargs).query }
shared_examples 'sets default limits' do
specify do
......
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