summaryrefslogtreecommitdiff
path: root/spec/support/shared_examples/graphql/connection_shared_examples.rb
blob: 4cba5b5a69dab6888c22a9be9140e6273a90a5b6 (plain)
1
2
3
4
5
6
7
8
9
# frozen_string_literal: true

RSpec.shared_examples 'a connection with collection methods' do
  %i[to_a size include? empty?].each do |method_name|
    it "responds to #{method_name}" do
      expect(connection).to respond_to(method_name)
    end
  end
end