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

Deep mock method #1

Open
derrley opened this issue May 10, 2013 · 0 comments
Open

Deep mock method #1

derrley opened this issue May 10, 2013 · 0 comments
Assignees

Comments

@derrley
Copy link
Member

derrley commented May 10, 2013

It should be easier to mock a method that's "deep" in the class's structure. While this is generally bad practice, sometimes, when mocking legacy interfaces, it is necessary.

some_mock.something.something_else.something_even_else.expect()

This could be a mode, where rather than failing, a mock method could automagically construct the thing it's trying to grab as a sub mock method

@ghost ghost assigned derrley May 10, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant