Sha256: 4e8be6df298792e7448cce0a4ca0c1775209e4e9886f9eff294bdb1e66b0c29c
Contents?: true
Size: 439 Bytes
Versions: 14
Compression:
Stored size: 439 Bytes
Contents
RSpec.describe Dry::Container do let(:klass) { Dry::Container } let(:container) { klass.new } it_behaves_like 'a container' describe 'inheritance' do it 'sets up a container for a child class' do parent = Class.new { extend Dry::Container::Mixin } child = Class.new(parent) parent.register(:foo, 'foo') child.register(:foo, 'foo') expect(parent[:foo]).to_not be(child[:foo]) end end end
Version data entries
14 entries across 14 versions & 2 rubygems