backbone-generator/templates/view_spec.js.erb

11 lines
215 B
Plaintext

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