Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improper handling when mocking on instances #57

Open
GoogleCodeExporter opened this issue Mar 19, 2015 · 0 comments
Open

Improper handling when mocking on instances #57

GoogleCodeExporter opened this issue Mar 19, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?

The attached script illustrates the problem.  

When you stub out a method on instance of a class and then unset the stub Mox 
leaves behind a copy of the method on the instance.  A future test which 
attempts to set the stub on a class will not affect the lingering instance.

Expected behavior:

When mox stubs out a method on an instance (or a subclass) which is not located 
on the object itself but in some parent object, it does not leave behind a copy 
of the mocked "thing" on the mocked object.


What version of the product are you using? On what operating system?

Mox 0.5.3-3 on Debian

Original issue reported on code.google.com by [email protected] on 13 Nov 2013 at 6:58

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant