diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-08 03:09:31 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-08 03:09:31 +0000 |
commit | e2ee1eec50aa8df8543d7ecc585ec0ba5ee544ac (patch) | |
tree | 7998650d27ada12ee7d06a21cbb3b5e89f298378 /spec/graphql/gitlab_schema_spec.rb | |
parent | 060c842402c00f830a810702600cbe39dfa6cf62 (diff) | |
download | gitlab-ce-e2ee1eec50aa8df8543d7ecc585ec0ba5ee544ac.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/graphql/gitlab_schema_spec.rb')
-rw-r--r-- | spec/graphql/gitlab_schema_spec.rb | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/spec/graphql/gitlab_schema_spec.rb b/spec/graphql/gitlab_schema_spec.rb index 50b210cdbca..0f21a55f7e9 100644 --- a/spec/graphql/gitlab_schema_spec.rb +++ b/spec/graphql/gitlab_schema_spec.rb @@ -3,7 +3,7 @@ require 'spec_helper' describe GitlabSchema do - let_it_be(:implementations) { GraphQL::Relay::BaseConnection::CONNECTION_IMPLEMENTATIONS } + let_it_be(:connections) { GitlabSchema.connections.all_wrappers } let(:user) { build :user } it 'uses batch loading' do @@ -34,22 +34,22 @@ describe GitlabSchema do expect(described_class.query).to eq(::Types::QueryType) end - it 'paginates active record relations using `Connections::Keyset::Connection`' do - connection = implementations[ActiveRecord::Relation.name] + it 'paginates active record relations using `Pagination::Keyset::Connection`' do + connection = connections[ActiveRecord::Relation] - expect(connection).to eq(Gitlab::Graphql::Connections::Keyset::Connection) + expect(connection).to eq(Gitlab::Graphql::Pagination::Keyset::Connection) end - it 'paginates ExternallyPaginatedArray using `Connections::ExternallyPaginatedArrayConnection`' do - connection = implementations[Gitlab::Graphql::ExternallyPaginatedArray.name] + it 'paginates ExternallyPaginatedArray using `Pagination::ExternallyPaginatedArrayConnection`' do + connection = connections[Gitlab::Graphql::ExternallyPaginatedArray] - expect(connection).to eq(Gitlab::Graphql::Connections::ExternallyPaginatedArrayConnection) + expect(connection).to eq(Gitlab::Graphql::Pagination::ExternallyPaginatedArrayConnection) end - it 'paginates FilterableArray using `Connections::FilterableArrayConnection`' do - connection = implementations[Gitlab::Graphql::FilterableArray.name] + it 'paginates FilterableArray using `Pagination::FilterableArrayConnection`' do + connection = connections[Gitlab::Graphql::FilterableArray] - expect(connection).to eq(Gitlab::Graphql::Connections::FilterableArrayConnection) + expect(connection).to eq(Gitlab::Graphql::Pagination::FilterableArrayConnection) end describe '.execute' do |