Merge branch 'stable' into develop

This commit is contained in:
Dennis Schubert
2015-05-19 03:00:56 +02:00
9 changed files with 56 additions and 21 deletions

View File

@@ -10,4 +10,19 @@ describe("app.views.Content", function(){
expect(this.view.smallPhotos().length).toEqual(1);
});
});
describe("presenter", function(){
beforeEach(function(){
this.post.set({text : ""}); // for textFormatter
});
it("provides isReshare", function(){
expect(this.view.presenter().isReshare).toBeFalsy();
});
it("provides isReshare and be true when the post is a reshare", function(){
this.post.set({post_type : "Reshare"});
expect(this.view.presenter().isReshare).toBeTruthy();
});
});
});