This repository has been archived by the owner. It is now read-only.

`toBeCalledWith` doesn't work when stub is called multiple times #82

Closed
malclocke opened this Issue Feb 16, 2012 · 3 comments

Comments

Projects
None yet
2 participants
@malclocke

malclocke commented Feb 16, 2012

This seems to work with plain sinon, but fails as a buster expectation. E.g.:

it("accepts multiple calls to a stub", function() {
  var stub = sinon.stub();
  stub('foo');
  stub('bar');
  expect(stub).toBeCalledWith('foo'); // fails
});
@cjohansen

This comment has been minimized.

Member

cjohansen commented Mar 4, 2012

Merged, but this still fails?

@malclocke

This comment has been minimized.

malclocke commented Mar 4, 2012

Works for me post merge, is it still broken for you?

@cjohansen

This comment has been minimized.

Member

cjohansen commented Mar 4, 2012

Nevermind, it works fine :)

@cjohansen cjohansen closed this Mar 4, 2012

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.