2022-01-01 13:38:12 +00:00
|
|
|
# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
|
2021-06-01 12:20:20 +00:00
|
|
|
|
2019-03-13 23:51:22 +00:00
|
|
|
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
|