summaryrefslogtreecommitdiff
path: root/spec/graphql
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2019-02-12 23:30:23 +0800
committerLin Jen-Shin <godfat@godfat.org>2019-02-14 15:52:17 +0800
commit564b86a3145cd5f7eae8071ef244dc684bcd5031 (patch)
tree15c4a5db6bf9f9ed8018b4c6f989a8095616c1eb /spec/graphql
parent7be1f0842f281305f2c36e2b6066842d8e87875c (diff)
downloadgitlab-ce-564b86a3145cd5f7eae8071ef244dc684bcd5031.tar.gz
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