Sha256: 004369dd6a136ed52911acbf6510f63f12b23a08061854d533359ea745fffbd2
Contents?: true
Size: 647 Bytes
Versions: 14
Compression:
Stored size: 647 Bytes
Contents
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
Version data entries
14 entries across 12 versions & 4 rubygems