diff options
author | Brett Walker <bwalker@gitlab.com> | 2019-04-08 22:02:22 +0300 |
---|---|---|
committer | Brett Walker <bwalker@gitlab.com> | 2019-04-11 19:32:13 +0300 |
commit | 2c98d6eef193c3562dc3b36529d434cc9eb6e8f2 (patch) | |
tree | 285c76105a6ad82f5d2252a204cd55ab98725a8b /spec/requests | |
parent | 7ae49f3c6c2560cec05f63af94c0f1e0f2df818a (diff) |
Allow arrays to specify fields graphql_query_for
Diffstat (limited to 'spec/requests')
-rw-r--r-- | spec/requests/api/graphql/gitlab_schema_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/requests/api/graphql/gitlab_schema_spec.rb b/spec/requests/api/graphql/gitlab_schema_spec.rb index f95f460fd14..b63b4fb34df 100644 --- a/spec/requests/api/graphql/gitlab_schema_spec.rb +++ b/spec/requests/api/graphql/gitlab_schema_spec.rb @@ -5,7 +5,7 @@ describe 'GitlabSchema configurations' do it 'shows an error if complexity is too high' do project = create(:project, :repository) - query = graphql_query_for('project', { 'fullPath' => project.full_path }, "id\nname\ndescription") + query = graphql_query_for('project', { 'fullPath' => project.full_path }, %w(id name description)) allow(GitlabSchema).to receive(:max_query_complexity).and_return 1 |