diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-23 00:08:53 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-23 00:08:53 +0000 |
commit | d65442b1d9621da6749d59ea1a544a2ea39b3a79 (patch) | |
tree | 0aa6fb67b70c38cdd949a2b4002ceb459860fa82 /spec/graphql/types/query_type_spec.rb | |
parent | b6ec12ceca58b12d974d46d0579742f4d3cdb9d7 (diff) | |
download | gitlab-ce-d65442b1d9621da6749d59ea1a544a2ea39b3a79.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/graphql/types/query_type_spec.rb')
-rw-r--r-- | spec/graphql/types/query_type_spec.rb | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/spec/graphql/types/query_type_spec.rb b/spec/graphql/types/query_type_spec.rb index 39a363cb913..ab210f2e918 100644 --- a/spec/graphql/types/query_type_spec.rb +++ b/spec/graphql/types/query_type_spec.rb @@ -7,15 +7,10 @@ describe GitlabSchema.types['Query'] do expect(described_class.graphql_name).to eq('Query') end - it do - is_expected.to have_graphql_fields(:project, - :namespace, - :group, - :echo, - :metadata, - :current_user, - :snippets - ).at_least + it 'has the expected fields' do + expected_fields = %i[project namespace group echo metadata current_user snippets] + + expect(described_class).to have_graphql_fields(*expected_fields).at_least end describe 'namespace field' do |