Our tests only have one concern
describe("View.StatusList", function() {
beforeEach(function() {
$el = $('
');
collection = new Backbone.Collection();
view = new View.StatusList({
el: $el,
collection: collection
});
});
it("appends newly added items", function() {
collection.add({text: 'this is fun!'});
expect($el.find('li').length).toBe(1);
expect($el.find('li').text()).toEqual('this is fun!');
});
});