backbone-generator/templates/collection_view_spec.js.erb

15 lines
329 B
Plaintext

describe('<%= plural_object_name %>View', function() {
var view, collection;
beforeEach(function() {
collection = new <%= plural_object_name %>();
});
it('should render', function() {
view = new <%= plural_object_name %>View(collection);
view.render();
expect($(view.el)).toContain('.list');
});
});