Welcome to mirror list, hosted at ThFree Co, Russian Federation.

array_connection_spec.rb « pagination « graphql « gitlab « lib « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 03cf53bb9903b0b15cb3b1ac02f3876192ba2b72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe ::Gitlab::Graphql::Pagination::ArrayConnection do
  let(:nodes) { (1..10) }

  subject(:connection) { described_class.new(nodes, max_page_size: 100) }

  it_behaves_like 'a connection with collection methods'

  it_behaves_like 'a redactable connection' do
    let(:unwanted) { 5 }
  end
end