spec/dependor/instantiator_spec.rb in dependor-1.0.0 vs spec/dependor/instantiator_spec.rb in dependor-1.0.1

- old
+ new

@@ -1,9 +1,10 @@ require 'spec_helper' describe Dependor::Instantiator do let(:injector) { double(:injector) } - let(:instantiator) { Dependor::Instantiator.new(injector) } + let(:dependency_names) { Dependor::DependencyNamesCache.new } + let(:instantiator) { Dependor::Instantiator.new(injector, dependency_names) } it "instantiates objects with no-arg constructors" do klass = Class.new do def foo "foo"