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

Version Path
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/coercible-1.0.0/spec/shared/unit/configurable.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/coercible-1.0.0/spec/shared/unit/configurable.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/coercible-1.0.0/spec/shared/unit/configurable.rb
grape-extra_validators-2.0.0 vendor/bundle/ruby/2.6.0/gems/coercible-1.0.0/spec/shared/unit/configurable.rb
grape-extra_validators-1.0.0 vendor/bundle/ruby/2.4.0/gems/coercible-1.0.0/spec/shared/unit/configurable.rb
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/coercible-1.0.0/spec/shared/unit/configurable.rb
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/coercible-1.0.0/spec/shared/unit/configurable.rb
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/coercible-1.0.0/spec/shared/unit/configurable.rb
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/coercible-1.0.0/spec/shared/unit/configurable.rb
coercible-1.0.0 spec/shared/unit/configurable.rb
coercible-0.2.0 spec/shared/unit/configurable.rb
coercible-0.1.0 spec/shared/unit/configurable.rb
coercible-0.0.2 spec/shared/unit/configurable.rb
coercible-0.0.1 spec/shared/unit/configurable.rb