13 lines
281 B
Ruby
13 lines
281 B
Ruby
|
RSpec.shared_examples 'Mixin::HasBackends' do
|
||
|
|
||
|
describe '.backends' do
|
||
|
it 'is a Set' do
|
||
|
expect(described_class.backends).to be_a(Set)
|
||
|
end
|
||
|
end
|
||
|
|
||
|
it "auto requires #{described_class}::Backend" do
|
||
|
expect(described_class).to be_const_defined(:Backend)
|
||
|
end
|
||
|
end
|