Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

made setup test dir-entry-order-independent

  • Loading branch information...
commit b6942985a35d66f5eef95016f2ff1075262c7cf2 1 parent 47019d4
Seth Purcell authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 testing/tests/stages/DispatcherTest.js
View
5 testing/tests/stages/DispatcherTest.js
@@ -109,15 +109,16 @@ module.exports["basics"] = {
var d = new Dispatcher();
- var exp = ['default', 'test1'];
+ var loaded = {};
d.loadController = function(baseDir, name) {
test.equal(baseDir, testbench.fixturesDir + '/controllers');
- test.equal(name, exp.shift());
+ loaded[name] = 1;
};
d.setUp(testbench.fixturesDir + '/controllers').then(
function() {
+ test.deepEqual(loaded, {"test1": 1, "default": 1});
test.done();
}
).end();
Please sign in to comment.
Something went wrong with that request. Please try again.