Sha256: da3727a53217f7cf5b1e3827a2c439a77d50deac0e86c27756f1ba919d3546de
Contents?: true
Size: 450 Bytes
Versions: 3
Compression:
Stored size: 450 Bytes
Contents
RSpec.describe 'Application container' do subject(:system) { Dummy::Container } describe '#load_component' do it 'loads component by its identifier' do system.load_component('user_repo') expect(Object.const_defined?(:UserRepo)).to be(true) end end describe '#[]' do it 'returns auto-registered component' do expect(system['operations.create_user']).to be_instance_of(Operations::CreateUser) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dry-system-rails-0.1.0 | spec/integration/container_spec.rb |
dry-system-rails-0.0.2 | spec/integration/container_spec.rb |
dry-system-rails-0.0.1 | spec/integration/container_spec.rb |