Permalink
Browse files

Added a test for callOrder when receiving an array.

  • Loading branch information...
1 parent 48713af commit f39441b80dbe2a697ebdef077227c103fa63fcfa @lfac-pt committed May 17, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 test/sinon-buster-test.js
@@ -155,6 +155,14 @@ var testCase = buster.testCase("sinon-buster", {
assert.callOrder(spies[0], spies[1]);
},
+
+ "passes when called in order using an array": function () {
+ var spies = [sinon.spy(), sinon.spy()];
+ spies[0]();
+ spies[1]();
+
+ assert.callOrder(spies);
+ },
"formats message": function () {
var spies = [sinon.spy(), sinon.spy()];

0 comments on commit f39441b

Please sign in to comment.