Sha256: 53bb81bcf496de342c86ca244986ff869fb955fdd4ac88af470399e32f90d901

Contents?: true

Size: 483 Bytes

Versions: 39

Compression:

Stored size: 483 Bytes

Contents

require 'spec_helper'

RSpec.describe ComplexConfig::Config do
  let :plugin_code do
    -> id { skip }
  end

  it 'configures' do
    ComplexConfig.configure do |config|
      config.config_dir = 'foo'
      config.env        = 'bar'
      config.add_plugin plugin_code
    end
    expect(ComplexConfig::Provider.config_dir).to eq Pathname.new('foo')
    expect(ComplexConfig::Provider.env).to eq 'bar'
    expect(ComplexConfig::Provider.plugins).to include plugin_code
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
complex_config-0.22.0 spec/complex_config/config_spec.rb
complex_config-0.21.2 spec/complex_config/config_spec.rb
complex_config-0.21.1 spec/complex_config/config_spec.rb
complex_config-0.21.0 spec/complex_config/config_spec.rb
complex_config-0.20.0 spec/complex_config/config_spec.rb
complex_config-0.19.4 spec/complex_config/config_spec.rb
complex_config-0.19.3 spec/complex_config/config_spec.rb
complex_config-0.19.2 spec/complex_config/config_spec.rb
complex_config-0.19.1 spec/complex_config/config_spec.rb
complex_config-0.19.0 spec/complex_config/config_spec.rb
complex_config-0.18.2 spec/complex_config/config_spec.rb
complex_config-0.18.1 spec/complex_config/config_spec.rb
complex_config-0.18.0 spec/complex_config/config_spec.rb
complex_config-0.17.1 spec/complex_config/config_spec.rb
complex_config-0.17.0 spec/complex_config/config_spec.rb
complex_config-0.16.0 spec/complex_config/config_spec.rb
complex_config-0.15.1 spec/complex_config/config_spec.rb
complex_config-0.15.0 spec/complex_config/config_spec.rb
complex_config-0.14.1 spec/complex_config/config_spec.rb
complex_config-0.14.0 spec/complex_config/config_spec.rb