More order-dependent Jasmine test fixes
This commit is contained in:
parent
23c2487550
commit
baeeee8e73
2 changed files with 2 additions and 1 deletions
|
|
@ -81,6 +81,7 @@ describe('app.Router', function () {
|
|||
describe("aspects", function() {
|
||||
it("calls _initializeStreamView", function() {
|
||||
new app.models.Stream();
|
||||
app.publisher = new app.views.Publisher({standalone: true});
|
||||
spyOn(app.router, "_initializeStreamView");
|
||||
app.router.aspects();
|
||||
expect(app.router._initializeStreamView).toHaveBeenCalled();
|
||||
|
|
|
|||
|
|
@ -199,7 +199,7 @@ describe("app.views.Publisher", function() {
|
|||
|
||||
describe("createStatusMessage", function(){
|
||||
it("adds the status message to the stream", function() {
|
||||
new app.models.Stream();
|
||||
app.stream = new app.models.Stream();
|
||||
|
||||
spyOn(app.stream, "addNow");
|
||||
this.view.createStatusMessage($.Event());
|
||||
|
|
|
|||
Loading…
Reference in a new issue