Sha256: 951d2860648e0a39955c7e98c54c1a93d8ac2ecf5a84011858927fafb27d9513
Contents?: true
Size: 354 Bytes
Versions: 1
Compression:
Stored size: 354 Bytes
Contents
require 'dry/component/container' RSpec.describe Dry::Component::Config do before do class Test::App < Dry::Component::Container configure do |config| config.root = SPEC_ROOT.join('fixtures/test').realpath end end end it 'loads config under component name' do expect(Test::App.options.foo).to eql('bar') end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dry-component-0.0.1 | spec/unit/config_spec.rb |