More fixes for order-dependent Jasmine spec failures
These ones would fail if `app.page` was in the wrong state from a previous test.
This commit is contained in:
parent
b2ee986815
commit
1c577fb5b2
4 changed files with 11 additions and 0 deletions
|
|
@ -1,4 +1,9 @@
|
|||
describe('app.Router', function () {
|
||||
beforeEach(function () {
|
||||
delete app.page;
|
||||
new app.Router().stream();
|
||||
});
|
||||
|
||||
describe('followed_tags', function() {
|
||||
beforeEach(function() {
|
||||
loginAs({name: 'alice'});
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ describe("app.views.StreamShortcuts", function () {
|
|||
|
||||
beforeEach(function() {
|
||||
// This puts `app.page` into the proper state.
|
||||
delete app.page;
|
||||
new app.Router().stream();
|
||||
|
||||
this.post1 = factory.post({author : factory.author({name : "Rebecca Black", id : 1492})});
|
||||
|
|
|
|||
|
|
@ -1,5 +1,9 @@
|
|||
describe("app.views.StreamPost", function(){
|
||||
beforeEach(function(){
|
||||
// This puts `app.page` into the proper state.
|
||||
delete app.page;
|
||||
new app.Router().stream();
|
||||
|
||||
this.PostViewClass = app.views.StreamPost;
|
||||
|
||||
var posts = $.parseJSON(spec.readFixture("stream_json"));
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
describe("app.views.Stream", function() {
|
||||
beforeEach(function() {
|
||||
// This puts `app.page` into the proper state.
|
||||
delete app.page;
|
||||
new app.Router().stream();
|
||||
|
||||
loginAs({name: "alice", avatar : {small : "http://avatar.com/photo.jpg"}});
|
||||
|
|
|
|||
Loading…
Reference in a new issue