dwf/rva: Added examples, fixed bug with initializing currentSuite with a mock.

This commit is contained in:
pivotal
2008-12-03 17:11:05 -08:00
parent e025755a61
commit 00f5f1722c
7 changed files with 113 additions and 24 deletions

4
test/bootstrap.js vendored
View File

@@ -91,6 +91,8 @@ var testMatchersReporting = function () {
}
var testSpecs = function () {
var currentSuite = describe('default current suite', function() {});
var spec = it('new spec');
reporter.test((spec.description == 'new spec'),
"Spec did not have a description");
@@ -508,7 +510,7 @@ var testRunner = function() {
it('should be a test');
});
reporter.test((runner.suites.length === 2),
"Runner expected two suites");
"Runner expected two suites, but got " + runner.suites.length);
runner = Runner();
describe('one suite description', function () {