Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-11-05 15:09:05 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-11-05 15:09:05 +0300
commita662b146aca7227bc800eed4878000d2b7c9d757 (patch)
tree8eb9906203b1fda105741b3cc1488a550ebf1962 /spec/lib/gitlab/graphql/authorize
parent015890a1b77cd90e9ffeb704944d1fb63b0ce555 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/lib/gitlab/graphql/authorize')
-rw-r--r--spec/lib/gitlab/graphql/authorize/authorize_field_service_spec.rb12
1 files changed, 1 insertions, 11 deletions
diff --git a/spec/lib/gitlab/graphql/authorize/authorize_field_service_spec.rb b/spec/lib/gitlab/graphql/authorize/authorize_field_service_spec.rb
index fca08ebf48b..c88506899cd 100644
--- a/spec/lib/gitlab/graphql/authorize/authorize_field_service_spec.rb
+++ b/spec/lib/gitlab/graphql/authorize/authorize_field_service_spec.rb
@@ -45,7 +45,7 @@ RSpec.describe Gitlab::Graphql::Authorize::AuthorizeFieldService do
let(:type_instance) { type_class.authorized_new(presented_object, context) }
let(:field) { type_class.fields['testField'].to_graphql }
- subject(:resolved) { resolve&.force }
+ subject(:resolved) { ::Gitlab::Graphql::Lazy.force(resolve) }
context 'reading the field of a lazy value' do
let(:ability) { :read_field }
@@ -240,16 +240,6 @@ RSpec.describe Gitlab::Graphql::Authorize::AuthorizeFieldService do
end
it_behaves_like 'authorizing fields'
-
- context 'the graphql_lazy_authorization feature flag is disabled' do
- before do
- stub_feature_flags(graphql_lazy_authorization: false)
- end
-
- subject(:resolved) { resolve }
-
- it_behaves_like 'authorizing fields'
- end
end
private