Pass the receiving instance to any instance stubs.

Signed-off-by: Sam Phippen <samphippen@googlemail.com>
Disable any_instance receiving the object by default.

Add specs and warnings.

Signed-off-by: Sam Phippen <samphippen@googlemail.com>
Improve the warning message for any_instance block expectations.

Signed-off-by: Sam Phippen <samphippen@googlemail.com>
Add warn_deprecation to mocks.

Signed-off-by: Sam Phippen <samphippen@googlemail.com>
Only warn if there is an expectation block.

Signed-off-by: Sam Phippen <samphippen@googlemail.com>
Make any instance expectation warning work with more implementations.

Signed-off-by: Sam Phippen <samphippen@googlemail.com>
Merge pull request #383 from samphippen/2-99-maintenance

Add the any_instance stubs receiving the instance to 2-99