summaryrefslogtreecommitdiff
path: root/spec/support/shared_examples/graphql/connection_shared_examples.rb
blob: 895bab1f51a0e374511c934d18d373fd885f59a9 (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 map include? empty?].each do |method_name|
    it "responds to #{method_name}" do
      expect(connection).to respond_to(method_name)
    end
  end
end