Skip to content
Browse files

made init test dir entry order independent

  • Loading branch information...
1 parent 71ecf6b commit 47019d4a88774aba198aec361c7b625cbd7acd41 Seth Purcell committed Mar 8, 2012
Showing with 4 additions and 3 deletions.
  1. +4 −3 testing/tests/stages/DispatcherTest.js
View
7 testing/tests/stages/DispatcherTest.js
@@ -44,7 +44,7 @@ module.exports["basics"] = {
"test init/getConfig": function(test) {
- test.expect(6);
+ test.expect(5);
var d = new Dispatcher();
test.deepEqual(d.getConfig(), {});
@@ -54,15 +54,16 @@ module.exports["basics"] = {
test.equal(d.getConfig(), config);
- 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;
};
Q.when(d.isReady(),
function() {
+ test.deepEqual(loaded, {"test1": 1, "default": 1});
test.done();
}).end();
},

0 comments on commit 47019d4

Please sign in to comment.
Something went wrong with that request. Please try again.