spec/dependor/instantiator_spec.rb in dependor-0.0.6 vs spec/dependor/instantiator_spec.rb in dependor-1.0.0
- old
+ new
@@ -1,8 +1,8 @@
require 'spec_helper'
describe Dependor::Instantiator do
- let(:injector) { stub(:injector) }
+ let(:injector) { double(:injector) }
let(:instantiator) { Dependor::Instantiator.new(injector) }
it "instantiates objects with no-arg constructors" do
klass = Class.new do
def foo