Sha256: e2e4bdd5d19afb1acc7c7d41db3caca0755ce69d4e6a487eedc371b3c7331a0e
Contents?: true
Size: 599 Bytes
Versions: 1
Compression:
Stored size: 599 Bytes
Contents
require 'main/import' RSpec.describe 'Dry Web Application' do it 'sets env' do expect(Main::Application.config.container.config.env).to be(:test) end it 'loads container' do expect(Main::Application[:logger]).to be_instance_of(Logger) end it 'sets up namespaced dependencies' do expect(Main::Application['main.persistence.repositories.users']).to be_instance_of(Main::Persistence::Repositories::Users) end it 'sets up auto-injection mechanism' do klass = Class.new { include Main::Import(:logger) } expect(klass.new.logger).to be_instance_of(Logger) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dry-web-0.1.0 | spec/integration/application_spec.rb |