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
|