From 6b31491da76d5b99875bd4b15f60d97192fdff62 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Fri, 13 May 2011 10:11:03 -0400 Subject: [PATCH] another fix --- templates/view.coffee.erb | 2 +- templates/view_spec.coffee.erb | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/templates/view.coffee.erb b/templates/view.coffee.erb index 79527b6..ef6a07e 100644 --- a/templates/view.coffee.erb +++ b/templates/view.coffee.erb @@ -21,5 +21,5 @@ class window.<%= object_name %>View extends Backbone.View @model.save(this.attributes()) destroy: => if confirm("Are you sure?") - @model.destroy + @model.destroy() diff --git a/templates/view_spec.coffee.erb b/templates/view_spec.coffee.erb index 67b8415..ea47d02 100644 --- a/templates/view_spec.coffee.erb +++ b/templates/view_spec.coffee.erb @@ -17,10 +17,9 @@ describe '<%= object_name %>View', -> setFixtures('
') view = new <%= object_name %>View({model: model}) - - it 'should render with an update button', -> view.render() + it 'should render with an update button', -> expect(view.$('button.save')).toHaveText('Update') it 'should destroy the model', ->