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

RR omits "unexpected method invocation" when stub exists #1

Open
trogdoro opened this issue May 7, 2009 · 2 comments
Open

RR omits "unexpected method invocation" when stub exists #1

trogdoro opened this issue May 7, 2009 · 2 comments
Labels

Comments

@trogdoro
Copy link

trogdoro commented May 7, 2009

If I have "mock(A).b(2)" and "A.b(3)" is invoked instead, RR clues me in on this by listing "b(3)" under "unexpected method invocation", which is great. However, if I also have stub(A).b it doesn't. It could be argued that the "b(3)" call is no longer unexpected given the stub, but it would be helpful to provide a clue that b(3) was called instead of b(2), lest the developer be left on his own to track this down. Mocking one invocation to a method and stubbing out the rest seems like a common use case.

@btakita
Copy link
Owner

btakita commented Aug 17, 2009

Thanks. I'll take a look at fixing this.

@btakita
Copy link
Owner

btakita commented Feb 16, 2010

You can use stub(A).b.verbose to see the signature of the calls to the stub of b.

However, I can see some sort of instrumenting method would be useful.

Maybe something like:

track(A).b?

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

No branches or pull requests

2 participants