
gems.coercible-1.0.0.spec.shared.unit.configurable.rb Maven / Gradle / Ivy
The newest version!
shared_examples_for 'Configurable' do
describe '.config_name' do
subject { described_class.config_name }
it { should be_instance_of(Symbol) }
end
describe '.config_keys' do
subject { described_class.config_keys }
it { should be_instance_of(Array) }
it { should_not be_empty }
end
describe '.config' do
subject { described_class.config }
it { should be_instance_of(Coercible::Configuration) }
it 'responds to configuration keys' do
described_class.config_keys.each do |key|
expect(subject).to respond_to(key)
expect(subject).to respond_to("#{key}=")
end
end
end
end
© 2015 - 2025 Weber Informatics LLC | Privacy Policy