debian-mirror-gitlab/spec/support/shared_examples/graphql/connection_shared_examples.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
262 B
Ruby
Raw Normal View History

2021-02-22 17:27:13 +05:30
# frozen_string_literal: true
RSpec.shared_examples 'a connection with collection methods' do
2021-11-18 22:05:49 +05:30
%i[to_a size map include? empty?].each do |method_name|
2021-02-22 17:27:13 +05:30
it "responds to #{method_name}" do
expect(connection).to respond_to(method_name)
end
end
end