Browse files

Implemented test behavior

  • Loading branch information...
1 parent 75639aa commit d6bca55a82665158bf4d95493ecaf188debf66a0 @nka11 nka11 committed Jun 19, 2011
Showing with 5 additions and 14 deletions.
  1. +1 −1 dep/Nu-Q
  2. +4 −13 test/testRepository.js
2 dep/Nu-Q
@@ -1 +1 @@
-Subproject commit a9df66707e68c6e847e7697647b1b17ca14dcb25
+Subproject commit 24b7c1370ac6f4318540b1cc0034fa37491f3b13
View
17 test/testRepository.js
@@ -2,9 +2,8 @@ var Repository = require('../src/Repository.js'),
core = require("../dep/Nu-Q/src/NuQCore.js"),
vows = require('vows'),
assert = require('assert'),
- repositorySuite, apiSuite,
- _ = require('util'),
- testRepository
+ repositorySuite,
+ _ = require('util')
,nuqtests = require('../dep/Nu-Q/test/RepositoryImplTest.js');
@@ -21,21 +20,13 @@ repositorySuite.addBatch({
},this.callback);
},
"Can get repository": function(err, repo) {
- testRepository = repo;
-// Setting the topic of apisuite
- apiSuite.topic = testRepository;
-// console.log(this.context);
-// this.context["API Test suite"] = nuqtests.implSuite(testRepository);
+ nuqtests.setRepositoryInstance(repo);
if (err !== null) {
_.log(err);
}
assert.ok(err === null, "An error was thrown");
}
}
});
-apiSuite = nuqtests.getSuite();
-repositorySuite.addBatch(apiSuite);
-//repositorySuite.addBatch({"API Test suite": nuqtests.implSuite(testRepository)});
-
-
+repositorySuite.addBatch(nuqtests.getSuite());
exports.repositorySuite = repositorySuite;

0 comments on commit d6bca55

Please sign in to comment.