has_backends_examples.rb 281 B

123456789101112
  1. RSpec.shared_examples 'Mixin::HasBackends' do
  2. describe '.backends' do
  3. it 'is a Set' do
  4. expect(described_class.backends).to be_a(Set)
  5. end
  6. end
  7. it "auto requires #{described_class}::Backend" do
  8. expect(described_class).to be_const_defined(:Backend)
  9. end
  10. end