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

.resetHistory #863

Closed
mroderick opened this issue Oct 1, 2015 · 1 comment
Closed

.resetHistory #863

mroderick opened this issue Oct 1, 2015 · 1 comment

Comments

@mroderick
Copy link
Member

With dotchev@7078dd8 it is no longer possible to only reset the call history of a stub.

As discussed in #806 (comment), we could expand the api a tiny bit.

// resets both call history and behaviour
stub.reset();

// NEW: reset call history 
stub.resetHistory();

// reset behaviour
stub.resetBehavior()
@fatso83
Copy link
Contributor

fatso83 commented Oct 1, 2015

Nice, I like it.

@fatso83 fatso83 closed this as completed in 5d9b118 Oct 5, 2015
fatso83 added a commit that referenced this issue Oct 5, 2015
Implemented stub#resetHistory method

fixes #863
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

2 participants