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:
authorLin Jen-Shin <godfat@godfat.org>2019-02-12 18:30:23 +0300
committerLin Jen-Shin <godfat@godfat.org>2019-02-14 10:52:17 +0300
commit564b86a3145cd5f7eae8071ef244dc684bcd5031 (patch)
tree15c4a5db6bf9f9ed8018b4c6f989a8095616c1eb /spec/graphql
parent7be1f0842f281305f2c36e2b6066842d8e87875c (diff)
Allow authorize on array of objects for GraphQL
And add tests
Diffstat (limited to 'spec/graphql')
-rw-r--r--spec/graphql/types/project_type_spec.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/graphql/types/project_type_spec.rb b/spec/graphql/types/project_type_spec.rb
index 811bd53eb4d..e8f1c84f8d6 100644
--- a/spec/graphql/types/project_type_spec.rb
+++ b/spec/graphql/types/project_type_spec.rb
@@ -15,7 +15,8 @@ describe GitlabSchema.types['Project'] do
end
it 'authorizes the merge requests' do
- skip
+ expect(described_class.fields['mergeRequests'])
+ .to require_graphql_authorizations(:read_merge_request)
end
end