backbone-generator/templates/view_spec.js.erb

11 lines
215 B
Plaintext
Raw Normal View History

2011-04-15 18:55:37 +00:00
describe('<%= object_name %>View', function() {
var view;
it('should render', function() {
view = new <%= object_name %>View();
view.render();
expect($(view.el)).toContain('.something');
});
});