spec/discoverer/writer_spec.rb in discoverer-0.0.2 vs spec/discoverer/writer_spec.rb in discoverer-0.0.3
- old
+ new
@@ -27,10 +27,10 @@
Writer::TestClass.should_receive(:new).with(obj)
obj.to
end
it "should retrive the same writer if it's called twice" do
- writer = stub "writer"
+ writer = double "writer"
aux = TestClass.new
Writer::TestClass.should_receive(:new).with(aux).and_return(writer)
aux.to.should eq writer
\ No newline at end of file