spec/integration/mixin_spec.rb in dry-container-0.1.0 vs spec/integration/mixin_spec.rb in dry-container-0.2.0
- old
+ new
@@ -1,17 +1,19 @@
RSpec.describe Dry::Container::Mixin do
describe 'extended' do
- let(:container) do
+ let(:klass) do
Class.new { extend Dry::Container::Mixin }
end
+ let(:container) { klass }
it_behaves_like 'a container'
end
describe 'included' do
- let(:container) do
- Class.new { include Dry::Container::Mixin }.new
+ let(:klass) do
+ Class.new { include Dry::Container::Mixin }
end
+ let(:container) { klass.new }
it_behaves_like 'a container'
end
end