diaspora/spec/javascripts/app/views/content_view_spec.js
2015-02-08 23:41:31 +01:00

13 lines
423 B
JavaScript

describe("app.views.Content", function(){
beforeEach(function(){
this.post = new app.models.StatusMessage();
this.view = new app.views.Content({model : this.post});
});
describe("rendering", function(){
it("should return all but the first photo from the post", function() {
this.post.set({photos : [1,2]}); // set 2 Photos
expect(this.view.smallPhotos().length).toEqual(1);
});
});
});