Sha256: 51915cb421c10045f51ff5be6a18f9daf7cc7e0f51f81872dee66bf160fb9257
Contents?: true
Size: 438 Bytes
Versions: 2
Compression:
Stored size: 438 Bytes
Contents
RSpec.describe 'boot files' do subject(:system) { Test::Container } before do class Test::Container < Dry::System::Container configure do |config| config.root = SPEC_ROOT.join('fixtures/test').realpath end end end it 'auto-boots dependency of a bootable component' do system.start(:client) expect(system[:client]).to be_a(Client) expect(system[:client].logger).to be_a(Logger) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dry-system-0.7.3 | spec/integration/boot_spec.rb |
dry-system-0.7.2 | spec/integration/boot_spec.rb |