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-08-11 06:11:00 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-08-11 06:11:00 +0300
commitbdca0979165cb662173d959c358fce0c539c7544 (patch)
tree5a2a58ea3738592da1d84a2ed53410deea752a51 /spec/graphql/features
parent1a3d7fe0b65d92e322bfe33aebe6b64419203f4f (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/graphql/features')
-rw-r--r--spec/graphql/features/authorization_spec.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/graphql/features/authorization_spec.rb b/spec/graphql/features/authorization_spec.rb
index 6e5a8b9f4be..e40c44925e2 100644
--- a/spec/graphql/features/authorization_spec.rb
+++ b/spec/graphql/features/authorization_spec.rb
@@ -257,6 +257,7 @@ RSpec.describe 'Gitlab::Graphql::Authorization' do
type.field :id, GraphQL::ID_TYPE, null: false
end
end
+
let(:project_type) do |type|
type_factory do |type|
type.graphql_name 'FakeProjectType'
@@ -264,11 +265,13 @@ RSpec.describe 'Gitlab::Graphql::Authorization' do
resolve: -> (_, _, _) { Issue.where(project: [visible_project, other_project]).order(id: :asc) }
end
end
+
let(:query_type) do
query_factory do |query|
query.field :test_project, project_type, null: false, resolve: -> (_, _, _) { visible_project }
end
end
+
let(:query_string) do
<<~QRY
{ testProject { testIssues(first: 3) { edges { node { id } } } } }