Fix order-dependent failure of stream_view_spec.js
This spec was only passing when it was run after another spec (router_spec.js) that put `app.page` in an appropriate state.
This commit is contained in:
parent
058090afe7
commit
0831d4e294
1 changed files with 3 additions and 0 deletions
|
|
@ -1,5 +1,8 @@
|
|||
describe("app.views.Stream", function() {
|
||||
beforeEach(function() {
|
||||
// This puts `app.page` into the proper state.
|
||||
new app.Router().stream();
|
||||
|
||||
loginAs({name: "alice", avatar : {small : "http://avatar.com/photo.jpg"}});
|
||||
|
||||
this.posts = $.parseJSON(spec.readFixture("stream_json"));
|
||||
|
|
|
|||
Loading…
Reference in a new issue