has_backends_examples.rb 358 B

1234567891011121314
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. RSpec.shared_examples 'Mixin::HasBackends' do
  3. describe '.backends' do
  4. it 'is a Set' do
  5. expect(described_class.backends).to be_a(Set)
  6. end
  7. end
  8. it "auto requires #{described_class}::Backend" do
  9. expect(described_class).to be_const_defined(:Backend)
  10. end
  11. end