This changes to storing Stub instances on Assert instead of
the object that is being stubbed. This avoids cluttering the
objects inspect which, by default, display all ivars for an object.
It also avoids the Stub having to store the object it is
stubbing so it can remove the instance variable. Since the names
of the ivars are already object-method specific, they can all
be stored on Assert without any issues. This also doesn't
require using the Assert.stub interface and will work without
issue when using Stub alone.
This changes to storing
Stub
instances onAssert
instead of the object that is being stubbed. This avoids cluttering the objects inspect which, by default, display all ivars for an object. It also avoids theStub
having to store the object it is stubbing so it can remove the instance variable. Since the names of the ivars are already object-method specific, they can all be stored onAssert
without any issues. This also doesn't require using theAssert.stub
interface and will work without issue when usingStub
alone.@kellyredding - Ready for review.