Rename Suite.children_ to .children

Also removed some unit tests that were brittle, and already tested by
better, more round-trip tests.
This commit is contained in:
Sheel Choksi and Tim Jarratt
2013-10-25 10:25:50 -07:00
parent 243ff80196
commit 26581b4c91
2 changed files with 7 additions and 60 deletions

View File

@@ -67,54 +67,6 @@ describe("Suite", function() {
expect(suite.afterFns).toEqual([innerAfter, outerAfter]);
});
it("adds specs", function() {
var env = new j$.Env(),
fakeQueue = {
add: jasmine.createSpy()
},
suite = new j$.Suite({
env: env,
description: "I am a suite",
queueFactory: function() {
return fakeQueue
}
}),
fakeSpec = {};
expect(suite.children_.length).toEqual(0);
suite.addSpec(fakeSpec);
expect(suite.children_.length).toEqual(1);
});
it("adds suites", function() {
var env = new j$.Env(),
fakeQueue = {
add: jasmine.createSpy()
},
suite = new j$.Suite({
env: env,
description: "I am a suite",
queueFactory: function() {
return fakeQueue
}
}),
anotherSuite = new j$.Suite({
env: env,
description: "I am another suite",
queueFactory: function() {
return fakeQueue
}
});
expect(suite.children_.length).toEqual(0);
suite.addSuite(anotherSuite);
expect(suite.children_.length).toEqual(1);
});
it("can be disabled", function() {
var env = new j$.Env(),
fakeQueueRunner = jasmine.createSpy('fake queue runner'),