backbone-generator/templates/collection_view_spec.js.erb

15 lines
311 B
Plaintext
Raw Normal View History

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